- Timestamp:
- 12/13/2016 03:51:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r39440 r39595 120 120 'tags_exclude', 121 121 ), $keys ); 122 } 123 124 public function test_registered_get_item_params() { 125 $request = new WP_REST_Request( 'OPTIONS', sprintf( '/wp/v2/posts/%d', self::$post_id ) ); 126 $response = $this->server->dispatch( $request ); 127 $data = $response->get_data(); 128 $keys = array_keys( $data['endpoints'][0]['args'] ); 129 sort( $keys ); 130 $this->assertEquals( array( 'context', 'password' ), $keys ); 122 131 } 123 132
Note: See TracChangeset
for help on using the changeset viewer.