Wordpress/tests/phpunit/tests
Boone Gorges 1949734cf3 Improve role-related arguments in `WP_User_Query`.
* 'role' now accepts an array or comma-separated list of role names. When passing multiple values for 'role', `WP_User_Query` will only match users that have all of the specified roles.
* 'role__in' accepts an array of role names, and allow the filtering of matched users to those with at least one of the specified roles.
* 'role__not_in' accepts an array of role names, and allows the filtering of matched users to those who have none of the specified roles.

Props swissspidy, mordauk, barrykooij, sirbrillig.
Fixes #22212.

git-svn-id: https://develop.svn.wordpress.org/trunk@34875 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-06 17:39:23 +00:00
..
actions
admin Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
ajax Initialise `$_SERVER[ 'REMOTE_ADDR' ]` during the test bootstrap so individual tests need not. 2015-09-15 08:04:33 +00:00
attachment Tests: Make the Attachment Slashes tests clean up after itself. 2015-10-06 04:00:53 +00:00
canonical Canonical/Rewrite: sanity check posts that are paged with `<!--nextpage-->`. Page numbers past the max number of pages are returning the last page of content and causing infinite duplicate content. 2015-09-24 14:03:05 +00:00
category Fix 'exclude_tree' in `wp_list_categories()`. 2015-09-29 19:11:12 +00:00
comment Use `wp_installing()` instead of `WP_INSTALLING` constant. 2015-10-05 15:05:26 +00:00
customize Tests: Dequeue the styles and scripts enqueued by `Test_WP_Customize_Nav_Menus::test_enqueue_scripts()`. 2015-10-06 05:47:17 +00:00
date
db WPDB: Make sure we don't run sanity checks on DB dropins. 2015-09-28 01:16:29 +00:00
dependencies Add a return value to `wp_register_script()` and `wp_register_style()` which matches the return value of `WP_Dependencies::add()`. 2015-05-10 19:56:15 +00:00
feed Tests: Introduce `WP_UnitTestCase::reset_permalinks()`, an attempt to DRY up logic for resetting and restoring default permalinks on `setUp()` and `tearDown()`. 2015-10-03 17:14:12 +00:00
filesystem Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
formatting Improvements to PCRE benchmarking tests. 2015-10-02 13:50:12 +00:00
functions Allow `wp_get_archives()` to accept `post_type` as an arg. 2015-09-29 05:10:10 +00:00
general Use `wp_installing()` instead of `WP_INSTALLING` constant. 2015-10-05 15:05:26 +00:00
http Adjust detection of stream timeouts in maybe skip tests for https tests 2015-10-06 17:39:14 +00:00
image More explicit tests for `image_get_intermediate_size()`. 2015-10-02 14:13:15 +00:00
import Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
includes Remove `svn:executable` from test files. 2015-07-26 09:40:58 +00:00
link Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
meta Avoid returning duplicate matches when using a meta query in `WP_User_Query`. 2015-06-09 17:41:35 +00:00
multisite Revert change from true to false in multisite upload test 2015-09-26 20:58:22 +00:00
option Use `wp_installing()` instead of `WP_INSTALLING` constant. 2015-10-05 15:05:26 +00:00
pomo
post Merge the Responsive Images feature plugin into core, initial commit. See: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/ 2015-10-06 04:58:21 +00:00
query Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
rewrite Tests: Update `Tests_Rewrite_AddRewriteRule->setUp()` to use the new `set_permalink_structure()` helper. 2015-10-06 16:01:38 +00:00
term Use `wp_installing()` instead of `WP_INSTALLING` constant. 2015-10-05 15:05:26 +00:00
theme
user Improve role-related arguments in `WP_User_Query`. 2015-10-06 17:39:23 +00:00
xmlrpc Merge the Responsive Images feature plugin into core, initial commit. See: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/ 2015-10-06 04:58:21 +00:00
actions.php
adminbar.php Update links to the user profile editing screen in the admin toolbar when the current logged in user has no role on the current site. Covers single site and Multisite and introduces tests. 2015-09-14 17:09:58 +00:00
auth.php Add `'wp_verify_nonce_failed'` action that fires when nonce verification fails. 2015-08-26 00:05:11 +00:00
avatar.php Remove `svn:executable` from test files. 2015-07-26 09:40:58 +00:00
basic.php Tests: Check that `readme.html` is recommending an actively supported version of MySQL. 2015-09-08 03:23:29 +00:00
cache.php Unit Tests: in `Tests_Cache::test_wp_cache_init()`, when `wp_using_ext_object_cache()`, just check that the global is an instance of `WP_Object_Cache`. External object cache instances of `WP_Object_Cache` will contain resources as props that will always have differing internal IDs, so strict comparison won't work. 2015-10-02 05:05:26 +00:00
canonical.php Canonical/Rewrite: sanity check posts that are paged with `<!--nextpage-->`. Page numbers past the max number of pages are returning the last page of content and causing infinite duplicate content. 2015-09-24 14:03:05 +00:00
category.php In `Walker_CategoryDropdown::start_el()`, cast values to strings before deciding whether to append 'selected' attribute. 2015-08-21 01:10:34 +00:00
comment-submission.php Add missing unit tests from [34799]. 2015-10-03 15:09:57 +00:00
comment.php `WP_Comment::get_children()` test should be order-agnostic. 2015-09-27 02:00:49 +00:00
compat.php
cron.php
db.php WPDB: Allow `null` values in the CRUD functions. 2015-10-01 05:36:15 +00:00
dbdelta.php Remove `svn:executable` from test files. 2015-07-26 09:40:58 +00:00
dependencies.php
file.php
filters.php
functions.php Skip two `wp_json_encode()` tests when mbstring is unavailable. 2015-10-02 08:54:52 +00:00
kses.php Shortcodes: Improve the reliablity of shortcodes inside HTML tags. 2015-07-22 05:14:50 +00:00
l10n.php
link.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
mail.php Docs: Put "it's" in its place (again). 2015-09-16 12:45:51 +00:00
media.php Merge the Responsive Images feature plugin into core, initial commit. See: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/ 2015-10-06 04:58:21 +00:00
meta.php
multisite.php Initialise `$_SERVER[ 'REMOTE_ADDR' ]` during the test bootstrap so individual tests need not. 2015-09-15 08:04:33 +00:00
pluggable.php Add function signature tests for the pluggable functions in wp-admin/includes/schema.php and wp-admin/includes/upgrade.php. 2015-09-26 22:03:53 +00:00
post.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
query.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
rewrite.php Tests: Permalink Structures Phase II: DRY up logic for setting permalink structures in test methods. 2015-10-03 20:54:11 +00:00
shortcode.php Pinking shears in shortcode test file. 2015-10-02 13:50:18 +00:00
taxonomy.php Allow taxonomies to be non-public. 2015-09-16 19:04:57 +00:00
term.php Switch several assertions to `assertNotWPError()` so more context is provided when the assertion fails. 2015-09-27 22:26:16 +00:00
theme.php Themes: Get the correct theme when template and stylesheet were both passed as arguments. 2015-08-30 21:44:38 +00:00
upload.php
url.php `force_ssl_login()` has been functionally identical to `force_ssl_admin()` since 4.0 (#10267), so its test assertions can be removed as the function has been deprecated in [34700]. The remaining assertions suitably cover `force_ssl_admin()`. 2015-09-29 21:43:04 +00:00
user.php Users: Don't typo `assertTrue()` in a the uppercase letters `validate_username()` test. 2015-10-06 07:09:30 +00:00
walker.php
widgets.php Widgets: Add more tests for registering and unregistering sidebars with 1) no ID, 2) a string ID, 3) a numeric ID. 2015-10-04 05:22:11 +00:00