- 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-autosaves-controller.php
r48937 r48939 142 142 $data = $response->get_data(); 143 143 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 144 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );144 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 145 145 146 146 // Single. … … 149 149 $data = $response->get_data(); 150 150 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 151 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );151 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 152 152 } 153 153 … … 226 226 'content', 227 227 ); 228 $this->assert EqualSets( $fields, array_keys( $data ) );228 $this->assertSameSets( $fields, array_keys( $data ) ); 229 229 $this->assertSame( self::$editor_id, $data['author'] ); 230 230 } … … 245 245 ); 246 246 $data = $response->get_data(); 247 $this->assert EqualSets( $fields, array_keys( $data ) );247 $this->assertSameSets( $fields, array_keys( $data ) ); 248 248 } 249 249
Note: See TracChangeset
for help on using the changeset viewer.