wordpress-develop/tests/phpunit/tests/rest-api
Joe Hoyle 0e609fa717 REST API: Sanitize arrays being sent as CSVs.
In #38586 the ability to parse arrays as csv was introduced, however it didn't add any support for validating csv arrays. This adds such sanitization, and also a good amount of unit tests for all sanitization baed off schema.

See #38586.


git-svn-id: https://develop.svn.wordpress.org/trunk@39061 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-31 17:07:14 +00:00
..
rest-attachments-controller.php REST API: Delete temporary files during teardown of WP_Test_REST_Attachments_Controller. 2016-10-30 23:31:06 +00:00
rest-categories-controller.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-comments-controller.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-pages-controller.php REST API: Support password on non-post post types. 2016-10-31 03:52:08 +00:00
rest-post-meta-fields.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-post-statuses-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-post-types-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-posts-controller.php REST API: Allow a CSV list of term IDs to be passed to /posts. 2016-10-31 11:05:37 +00:00
rest-request-validation.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-request.php REST API: Enable sanitize_callback to return WP_Error. 2016-09-14 15:49:37 +00:00
rest-revisions-controller.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-schema-sanitization.php REST API: Sanitize arrays being sent as CSVs. 2016-10-31 17:07:14 +00:00
rest-schema-validation.php REST API: Allow parameters defined as array to be sent as CSVs. 2016-10-31 05:44:56 +00:00
rest-server.php REST API: Deprecate the rest_enabled filter. 2016-10-26 06:27:04 +00:00
rest-settings-controller.php REST API: Add support for "integer" type for meta and options 2016-10-31 16:06:54 +00:00
rest-tags-controller.php REST API: Use wp_get_object_terms() when fetching terms for a post object. 2016-10-27 01:41:08 +00:00
rest-taxonomies-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-test-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-users-controller.php REST API: Allow a CSV list of user roles to be passed to /users. 2016-10-31 11:10:37 +00:00