Sergey Biryukov
59989c2de0
Update tests/README.txt to reflect the new tests directory structure. props jdgrimes. fixes #25133 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25199 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 13:42:56 +00:00
Andrew Nacin
788973ffb2
Case insensitivity for is_email_address_unsafe().
...
props jkudish.
fixes #25046 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25197 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 04:35:15 +00:00
Andrew Nacin
afe7f94304
Fix 'html5' theme support.
...
* Require it to have a second argument when adding.
* Merge, rather than replace, on second add.
* Make current_theme_supports() work when two arguments are passed.
Adds unit tests.
props nathanrice for initial patch.
see #24932 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@25193 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-31 01:29:08 +00:00
Jon Cave
94e03ce09f
Test that passwords containing the username are penalised.
...
Tidy up some spelling, indentation and whitespace whilst we're at it.
Props iandunn. See #25088 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25175 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 22:28:32 +00:00
Andrew Nacin
f6966d20b3
Basic tests for wp_parse_id_list() to ensure positive integers. see [25169].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25170 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:58:40 +00:00
Scott Taylor
f458d16c01
Improve the include / exclude SQL generation in get_pages()
by using IN
and NOT IN
where applicable. Adds unit tests for include / exclude.
...
Fixes #22074 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25168 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:48:29 +00:00
Andrew Nacin
dd78079286
Add QUnit tests for password-strength-meter.js.
...
props jorbin.
see #25088 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25167 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:44:36 +00:00
Andrew Nacin
1a651a4723
Add QUnit to WordPress core for JavaScript unit testing.
...
props jorbin.
see #25088 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25166 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:42:59 +00:00
Andrew Nacin
8045afd81b
Move PHPUnit tests into a tests/phpunit directory.
...
wp-tests-config.php can/should reside in the root of a develop checkout. `phpunit` should be run from the root.
see #25088 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25165 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 18:39:34 +00:00
Scott Taylor
d34baebc1d
Search term name
and slug
when the search
arg is passed to get_terms()
. Adds unit test.
...
Props wojtek.szkutnik.
Fixes #13992 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25164 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 16:49:43 +00:00
Scott Taylor
9e96365b8e
Pass the taxonomy around to relevant nav menu actions to avoid arbitrarily deleting all items with menu-item-type
of taxonomy
. Adds unit test for wp_get_associated_nav_menu_items()
.
...
Props garyc40, SergeyBiryukov.
Fixes #15264 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25163 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 16:44:36 +00:00
Scott Taylor
a4a765c5fd
Improve the include / exclude SQL generation in get_terms()
by using IN
and NOT IN
where applicable. Adds unit tests for include / exclude.
...
Props sirzooro, duck_.
Fixes #11823 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25162 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 16:23:30 +00:00
Scott Taylor
69785902db
Support id=>name
and id=>slug
values for fields
arg in get_terms()
. Adds unit tests.
...
Props mikeschinkel.
Fixes #13661 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25161 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 15:18:08 +00:00
Scott Taylor
744a4a80a4
Respect the fields
arg when passed to get_children()
.
...
Fixes #22208 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25160 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-29 15:07:59 +00:00
Dion Hulse
b38ac8cd66
Unit Tests: Make it more compatible with PHPUnit when installed as a Phar, or, Composer package, by removing a duplicate require (Phpunit already includes the file itself). Props scribu Fixes #25065
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25145 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-28 01:43:14 +00:00
Andrew Nacin
c637de7316
WP_Date_Query.
...
props Viper007Bond.
see #18694 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25139 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-27 16:38:32 +00:00
Sergey Biryukov
d3a86958e6
Update the directory reference in tests/README.txt. props jdgrimes. fixes #25133 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25116 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-24 14:05:00 +00:00
Andrew Nacin
dc9bd8db8a
Multisite tests: Update default space allowed in get_space_allowed(). see #23650 , [25092].
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25111 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 22:54:54 +00:00
Scott Taylor
39171d7527
Check term_id
against the $term
object, not the non-existent var $args
. Props rboren. Fixes #12729 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25106 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-23 21:04:22 +00:00
Sergey Biryukov
ac338fc070
Check if a locale category is an existing constant when restoring locale settings in Tests_DB::test_locale_floats(). props nofearinc. fixes #25118 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25084 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-22 15:28:01 +00:00
Andrew Nacin
d71f11bdd7
Remove sourceMappingURL from jquery.min.js.
...
props Jayjdk.
fixes #24994 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25072 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-21 15:40:35 +00:00
Dion Hulse
0fbadc1e03
Adding some basic Unit Tests for the Filesystem methods, primarily, WP_Filesystem_Base::find_folder() which is used during FTP upgrades.
...
This introduces a Mock Filesystem in memory to avoid having to setup a different VM for every combination of filesystem structures possible.
git-svn-id: https://develop.svn.wordpress.org/trunk@25053 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-20 05:39:20 +00:00
Dion Hulse
b5b118558e
WP_HTTP: Cookies: When following redirects, include the request cookies in the redirected requests. Fixes #24987
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25046 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-17 01:19:04 +00:00
Ryan Boren
17267dd999
wp_get_shortlink() improvements.
...
* Return shortlinks for pages and public CPTs.
* Return shortlinks even when cruft-free links are not enabled.
* Unit tests
Props sillybean, layotte, cais
fixes #18632
see #14760
git-svn-id: https://develop.svn.wordpress.org/trunk@25030 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-15 20:08:06 +00:00
Dion Hulse
02134236de
Tests: Avoid PHP Deprecated and Strict Standards warnings from Object references and incompatible method declarations when running under WP_DEBUG
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25017 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-08 02:55:44 +00:00
Peter Westwood
ddbe85a1a7
Tests: Add support for storing your wp-test-config.php file a directory higher if you want to like we do for wp-config.php
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25008 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 10:09:35 +00:00
Peter Westwood
c366722810
Tests: Remove the real test configuration file, we only check in the sample one :)
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25007 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 10:08:59 +00:00
Peter Westwood
90ff12d777
Tests: Remove the transitory ticket cache files that shouldn't be under version control.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25006 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 10:08:15 +00:00
Andrew Nacin
98e788c259
Remove the legacy Tests_Theme_ThemeDirLarge test to drop the wpcom-themes external/dependency. see #24976 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@25004 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 06:51:04 +00:00
Andrew Nacin
1801ed459c
Initial import of unit-tests repository into develop.svn.wordpress.org.
...
Imported from https://unit-tests.svn.wordpress.org/trunk@1337
see #24976 .
git-svn-id: https://develop.svn.wordpress.org/trunk@25002 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 06:38:38 +00:00