- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php
r48937 r48939 24 24 $data = $response->get_data(); 25 25 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 26 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );26 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 27 27 // Single. 28 28 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/types/post' ); … … 30 30 $data = $response->get_data(); 31 31 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 32 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );32 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 33 33 } 34 34
Note: See TracChangeset
for help on using the changeset viewer.