wordpress-develop/tests/phpunit/tests/rest-api
Sergey Biryukov 3d259c2b22 Tests: Use assertSame() in some newly introduced tests.
This ensures that not only the return values match the expected results, but also that their type is the same.

Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.

Follow-up to [49904], [49925], [49992], [50012], [50013], [50065], [50075], [50131], [50150], [50157].

See #38266, #52482.

git-svn-id: https://develop.svn.wordpress.org/trunk@50284 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-10 13:24:24 +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 Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
rest-attachments-controller.php REST API: Return detailed error information from request validation. 2021-02-02 17:26:06 +00:00
rest-autosaves-controller.php Build/Test Tools: Misc test enhancements. 2020-11-15 17:17:55 +00:00
rest-block-directory-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-block-renderer-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-block-type-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-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: Only include the controller's own taxonomy in it's schema. 2021-01-02 23:47:42 +00:00
rest-comments-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-controller.php REST API: Add more specific error codes for schema validation. 2021-01-24 03:57:39 +00:00
rest-pages-controller.php REST API: Introduce modified_before and modified_after query parameters for the posts endpoints. 2021-01-26 18:26:13 +00:00
rest-plugins-controller.php Tests: Set up the plugin download in multisite plugin tests to come locally. 2021-01-09 05:56:04 +00:00
rest-post-meta-fields.php REST API: Allow sending an empty array to delete multi meta keys. 2021-01-17 00:49:39 +00:00
rest-post-statuses-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-post-types-controller.php Tests: Introduce assertSameSets() and assertSameSetsWithIndex(), and use them where appropriate. 2020-09-04 07:01:00 +00:00
rest-posts-controller.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +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 Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
rest-revisions-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-schema-sanitization.php REST API: Add support for the oneOf and anyOf keywords. 2020-10-20 18:22:39 +00:00
rest-schema-setup.php Security, Site Health: Improve accuracy in messaging about HTTPS support. 2021-01-29 19:09:49 +00:00
rest-schema-validation.php REST API: Support type coercion when validating the enum JSON Schema keyword. 2021-01-24 16:50:39 +00:00
rest-search-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-server.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
rest-settings-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-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: Only include the controller's own taxonomy in it's schema. 2021-01-02 23:47:42 +00:00
rest-taxonomies-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-term-meta-fields.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-test-controller.php REST API: Add support for the oneOf and anyOf keywords. 2020-10-20 18:22:39 +00:00
rest-themes-controller.php Tests: Use assertSame() in some newly introduced tests. 2021-02-10 13:24:24 +00:00
rest-users-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