Wordpress/tests/phpunit/tests
Timothy Jacobs a104c82526 REST API: Add tax relation parameter to posts collection.
The REST API supports filtering by terms across multiple taxonomies using an AND relation. This adds support for an OR relation by adding "tax_relation=OR" as a query parameter.

Props earnjam.
Fixes #44326.


git-svn-id: https://develop.svn.wordpress.org/trunk@46646 602fd350-edb4-49c9-b593-d223f7449a82
2019-11-03 23:12:44 +00:00
..
actions Code is Poetry. 2017-11-30 23:09:33 +00:00
admin Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
ajax Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
attachment Code is Poetry. 2017-11-30 23:09:33 +00:00
blocks Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
bookmark General: Fix existing coding standard violations in bookmark tests, as outlined in [44546]. 2019-01-10 21:16:49 +00:00
canonical Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
category Menus: In Walker_Nav_Menu, Walker_Category, and Walker_Page, properly output link attributes having a legitimate "empty" value, for example an HTML data attribute with a value of zero (0). 2019-10-06 15:04:18 +00:00
comment Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
customize Customize: Ensure that WP_Customize_Manager::import_theme_starter_content() properly handles starter content with (nested) arrays as values. 2019-10-15 16:41:51 +00:00
date Date/Time: Remove incomplete and redundant test for get_post_time() added in [46580]. 2019-10-25 15:09:30 +00:00
db Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
dependencies Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
editor Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
error-protection Bootstrap/Load: Allow more than one recovery link to be valid at a time. 2019-04-16 05:08:16 +00:00
external-http Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
feed Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
filesystem Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
formatting Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
functions Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
general Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
hooks Code Modernisation: Introduce the spread operator in tests/phpunit/*. 2019-09-15 11:03:45 +00:00
http Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
image Media: Update fallback previews to support _wp_make_subsizes() 2019-10-11 07:52:12 +00:00
import Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
includes Bootstrap/Load: After [45016], make sure wp_die() does not cause _doing_it_wrong() notices if called before $wp_query global is set. 2019-04-15 23:48:11 +00:00
l10n I18N: Add support for custom WP_PLUGIN_URL in load_script_textdomain(). 2019-07-27 12:43:56 +00:00
link Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
load
media Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
menu Tests: Use a consistent group for nav menu tests. 2019-10-06 15:12:42 +00:00
meta Query: Expand the list of operators available to compare_key in WP_Meta_Query. 2019-09-19 15:02:20 +00:00
multisite Coding Standards: Remove inline assignments and extra whitespace in tests/multisite/network.php. 2019-09-29 12:21:29 +00:00
oembed Tests: Add an xdebug group for tests that require xdebug. 2019-08-19 02:17:50 +00:00
option Themes: In get_theme_mod(), only run the sprintf() replacement on the default value if there's a string format pattern found in the value. 2019-10-05 00:53:39 +00:00
pomo Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
post Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
privacy Docs: Fix some incorrect return tags in docblocks. 2019-11-03 22:21:20 +00:00
query Query: Remove the static query property. 2019-10-14 15:18:49 +00:00
rest-api REST API: Add tax relation parameter to posts collection. 2019-11-03 23:12:44 +00:00
rewrite Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
taxonomy Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
term Tests: Use a consistent group for nav menu tests. 2019-10-06 15:12:42 +00:00
theme Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
url Privacy: Introduce Privacy Policy page helpers: 2019-03-21 19:47:29 +00:00
user Users: Make sure wp_logout() clears current user, so that a subsequent call to is_user_logged_in() works as expected. 2019-10-12 03:08:56 +00:00
widgets Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
xmlrpc Date/Time: Update XML-RPC tests for invalid date input to account for a more consistent mysql2date() error handling in [45908]. 2019-08-29 16:43:28 +00:00
actions.php Plugins: Restore backward compatibility for PHP4-style passing of array( &$this ) as action argument to do_action(). 2019-10-22 00:09:39 +00:00
adminbar.php Toolbar: Use add_node() instead of add_menu() in core. 2019-11-03 22:12:32 +00:00
auth.php Administration: Ensure that admin referer nonce is valid. 2019-10-14 17:13:35 +00:00
avatar.php Coding Standards: Fix and whitelist variable names. 2019-01-12 06:05:55 +00:00
basic.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
canonical.php Canonical: Ensure redirect query keys are URL encoded. 2019-04-08 01:09:01 +00:00
category.php Code is Poetry. 2017-11-30 23:09:33 +00:00
comment-submission.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
comment.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
compat.php Code Modernization: Pass an appropriate error level to trigger_error() in _doing_it_wrong() and related functions: 2019-11-01 00:39:04 +00:00
cron.php Cron: Ensure identical single events aren't scheduled less than 10min apart. 2019-03-16 06:41:23 +00:00
db.php Code Modernisation: Replace call_user_func_array() in tests/phpunit/tests/db.php with dynamic function calls. 2019-09-15 11:55:42 +00:00
dbdelta.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
dependencies.php Code is Poetry. 2017-11-30 23:09:33 +00:00
file.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
filters.php Code is Poetry. 2017-11-30 23:09:33 +00:00
functions.php Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6. 2019-09-20 22:01:36 +00:00
kses.php KSES: Add support for modern layout techniques in style attribute. 2019-09-22 22:16:19 +00:00
l10n.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
link.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
locale.php I18N: Following [45688], remove test for removed method. 2019-07-27 14:29:28 +00:00
mail.php Mail: Add a unit test to make sure wp_mail() does not duplicate the MIME-Version header added automatically by PHPMailer. 2019-09-14 21:34:51 +00:00
media.php Build/Test Tools: Ignore EOL differences in tests using multiline string assertions. 2019-10-29 14:26:41 +00:00
meta.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
multisite.php Fix PHP coding standards after [46251]. 2019-09-23 18:11:15 +00:00
pluggable.php Remove Failing Tests added in r46641 2019-11-03 22:47:52 +00:00
post.php Pings/Trackbacks: Remove a failing test that won't pass as long as WP_IMPORTING gets set during tests. 2019-10-07 22:17:22 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
rest-api.php REST API: Fix error in _fields filtering logic where only one of several requested sibling properties would be included. 2019-10-10 17:16:44 +00:00
rewrite.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
shortcode.php Shortcodes: Revert [46369] for now to allow more time to investigate and prepare for backward compatibility changes. 2019-10-15 19:34:31 +00:00
site-health.php Site Health Check: New tests file missed in [45801]. 2019-08-15 00:36:38 +00:00
taxonomy.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
template.php PHPCS: Remove extra spaces added in [44966]. 2019-03-21 20:19:16 +00:00
term.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
theme.php Bundled Themes: Make Twenty Twenty the new default theme. 2019-09-23 20:59:48 +00:00
upload.php Code is Poetry. 2017-11-30 23:09:33 +00:00
url.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
user.php Coding Standards: Clean up the tests around test_that_you_can_login_with_an_email_that_has_apostrophe. 2019-11-03 22:16:27 +00:00
walker.php Tests: Use a consistent group for nav menu tests. 2019-10-06 15:12:42 +00:00
widgets.php Code Modernisation: Replace call_user_func_array() in wp-admin/includes/widgets.php and associated unit tests with a direct function call. 2019-09-15 11:40:08 +00:00
wp.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00