- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
r43440 r43571 65 65 public function test_get_items_context_edit() { 66 66 wp_set_current_user( self::$contributor_id ); 67 $request 67 $request = new WP_REST_Request( 'GET', '/wp/v2/taxonomies' ); 68 68 $request->set_param( 'context', 'edit' ); 69 69 $response = rest_get_server()->dispatch( $request ); … … 187 187 $request->set_param( '_fields', 'id,name' ); 188 188 $response = $endpoint->prepare_item_for_response( $tax, $request ); 189 $this->assertEquals( array( 190 // 'id' doesn't exist in this context. 191 'name', 192 ), array_keys( $response->get_data() ) ); 189 $this->assertEquals( 190 array( 191 // 'id' doesn't exist in this context. 192 'name', 193 ), 194 array_keys( $response->get_data() ) 195 ); 193 196 } 194 197
Note: See TracChangeset
for help on using the changeset viewer.