- 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-statuses-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( 'embed', 'view', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] );26 $this->assertSameSets( array( 'embed', 'view', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] ); 27 27 // Single. 28 28 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/statuses/publish' ); … … 30 30 $data = $response->get_data(); 31 31 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 32 $this->assert EqualSets( array( 'embed', 'view', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] );32 $this->assertSameSets( array( 'embed', 'view', 'edit' ), $data['endpoints'][0]['args']['context']['enum'] ); 33 33 } 34 34 … … 52 52 $data = $response->get_data(); 53 53 $this->assertSame( 6, count( $data ) ); 54 $this->assert EqualSets(54 $this->assertSameSets( 55 55 array( 56 56 'publish', … … 213 213 $this->assertSame( $status_obj->show_in_admin_all_list, $data['show_in_list'] ); 214 214 $this->assertSame( $status_obj->name, $data['slug'] ); 215 $this->assert EqualSets(215 $this->assertSameSets( 216 216 array( 217 217 'archives',
Note: See TracChangeset
for help on using the changeset viewer.