- Timestamp:
- 08/15/2019 09:08:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r45607 r45811 3920 3920 remove_post_type_support( 'post', 'author' ); 3921 3921 3922 // Re-initialize the controller to cache-bust schemas from prior test runs. 3923 $GLOBALS['wp_rest_server']->override_by_default = true; 3924 $controller = new WP_REST_Posts_Controller( 'post' ); 3925 $controller->register_routes(); 3926 $GLOBALS['wp_rest_server']->override_by_default = false; 3927 3922 3928 $response = rest_get_server()->dispatch( new WP_REST_Request( 'OPTIONS', '/wp/v2/posts' ) ); 3923 3929 $data = $response->get_data();
Note: See TracChangeset
for help on using the changeset viewer.