- 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-taxonomies-controller.php
r48937 r48939 39 39 $data = $response->get_data(); 40 40 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 41 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );41 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 42 42 // Single. 43 43 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/taxonomies/post_tag' ); … … 45 45 $data = $response->get_data(); 46 46 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 47 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );47 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 48 48 } 49 49
Note: See TracChangeset
for help on using the changeset viewer.