wordpress-develop/tests/phpunit/tests/rest-api
John Blackbourn 21a7515fdb Build/Test Tools: Correct the order and naming of expected and actual values in various tests.
This corrects the order of the parameters when used in assertions so if/when they fail the failure message is correct.

See #53363


git-svn-id: https://develop.svn.wordpress.org/trunk@52248 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-25 19:39:31 +00:00
..
json_schema_test_suite REST API: Add support for the oneOf and anyOf keywords. 2020-10-20 18:22:39 +00:00
application-passwords.php App Passwords: Improve validation and sanitization of the application name. 2021-01-27 19:03:42 +00:00
rest-application-passwords-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
rest-attachments-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
rest-autosaves-controller.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rest-block-directory-controller.php Build/Test Tools: Mock no results remote request in WP_REST_Block_Directory_Controller:: get_items(). 2021-11-12 13:45:05 +00:00
rest-block-renderer-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
rest-block-type-controller.php Build: Split packages and blocks to their webpack configs 2021-07-28 10:05:01 +00:00
rest-blocks-controller.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
rest-categories-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
rest-comments-controller.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rest-controller.php REST API: Add text-field and textarea-field as available schema formats for string sanitization. 2021-10-15 02:03:38 +00:00
rest-global-styles-controller.php Add: Global Styles Rest endpoints. 2021-11-08 20:58:56 +00:00
rest-pages-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
rest-pattern-directory-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
rest-plugins-controller.php Build/Test Tools: Mock remote request for unknown plugin in WP_REST_Plugins_Controller::create_item(). 2021-11-11 16:58:27 +00:00
rest-post-meta-fields.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
rest-post-statuses-controller.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
rest-post-types-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:15:10 +00:00
rest-posts-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
rest-request-validation.php Tests: First pass at using assertSame() instead of assertEquals() in most of the unit tests. 2020-09-02 00:35:36 +00:00
rest-request.php Build/Test Tools: Fix warnings from stdClass::__invoke() callback mocks in REST API tests. 2021-11-23 18:55:23 +00:00
rest-revisions-controller.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rest-schema-sanitization.php Tests: Replace expectException() for PHP native errors with calls to the dedicated PHPUnit 8.4+ methods. 2021-08-06 21:38:45 +00:00
rest-schema-setup.php REST API: Add /wp/v2/block-navigation-areas endpoint 2021-11-11 03:50:22 +00:00
rest-schema-validation.php Tests: Replace expectException() for PHP native errors with calls to the dedicated PHPUnit 8.4+ methods. 2021-08-06 21:38:45 +00:00
rest-search-controller.php Tests: Use more appropriate assertions in various tests. 2021-07-07 10:32:56 +00:00
rest-server.php Build/Test Tools: Fix warnings from stdClass::__invoke() callback mocks in REST API tests. 2021-11-23 18:55:23 +00:00
rest-settings-controller.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
rest-sidebars-controller.php REST API: Allow sidebars and their widgets to be public. 2021-11-05 02:14:07 +00:00
rest-site-health-controller.php Build/Test Tools: Standardise the name, signature, and usage of the wpSetUpBeforeClass() method that's used in test classes. 2020-11-15 13:59:32 +00:00
rest-tags-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
rest-taxonomies-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 18:58:59 +00:00
rest-term-meta-fields.php Tests: Fix tests failing due to assertContains() using strict checking. 2021-08-07 10:51:59 +00:00
rest-test-controller.php REST API: Add text-field and textarea-field as available schema formats for string sanitization. 2021-10-15 02:03:38 +00:00
rest-themes-controller.php REST API: Support subdirectory themes in the Themes controller. 2021-11-05 02:29:32 +00:00
rest-users-controller.php Login and Registration: Fix failing test for "email already exists" registration error improvement. 2021-11-09 16:19:05 +00:00
rest-widget-types-controller.php REST API: Sort widget types by their id. 2021-10-02 21:43:26 +00:00
rest-widgets-controller.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:10:30 +00:00
wpRestBlockNavigationAreasController.php External Libraries: Update the Requests library to version 2.0.0. 2021-11-25 01:10:30 +00:00
wpRestMenuItemsController.php Build/Test Tools: Correct the order and naming of expected and actual values in various tests. 2021-11-25 19:39:31 +00:00
wpRestMenuLocationsController.php REST API: Introduce Menu management endpoints. 2021-11-09 18:58:59 +00:00
wpRestMenusController.php REST API: Introduce Menu management endpoints. 2021-11-09 18:58:59 +00:00
wpRestTemplatesController.php REST API: Make the templates controller follow core REST patterns. 2021-11-16 18:04:49 +00:00
wpRestUrlDetailsController.php REST API: Add URL Details endpoint. 2021-11-02 12:46:01 +00:00