Changeset 44255
- Timestamp:
- 12/17/2018 01:24:36 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-autosaves-controller.php
r44253 r44255 154 154 public function test_registered_query_params() { 155 155 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/posts/' . self::$post_id . '/autosaves' ); 156 $response = $this->server->dispatch( $request );156 $response = rest_get_server()->dispatch( $request ); 157 157 $data = $response->get_data(); 158 158 $keys = array_keys( $data['endpoints'][0]['args'] );
Note: See TracChangeset
for help on using the changeset viewer.