- 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-revisions-controller.php
r48937 r48939 112 112 $data = $response->get_data(); 113 113 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 114 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );114 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 115 115 // Single. 116 116 $request = new WP_REST_Request( 'OPTIONS', '/wp/v2/posts/' . self::$post_id . '/revisions/' . $this->revision_1->ID ); … … 118 118 $data = $response->get_data(); 119 119 $this->assertSame( 'view', $data['endpoints'][0]['args']['context']['default'] ); 120 $this->assert EqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );120 $this->assertSameSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] ); 121 121 } 122 122 … … 186 186 ); 187 187 $data = $response->get_data(); 188 $this->assert EqualSets( $fields, array_keys( $data ) );188 $this->assertSameSets( $fields, array_keys( $data ) ); 189 189 $this->assertSame( self::$editor_id, $data['author'] ); 190 190 } … … 205 205 ); 206 206 $data = $response->get_data(); 207 $this->assert EqualSets( $fields, array_keys( $data ) );207 $this->assertSameSets( $fields, array_keys( $data ) ); 208 208 } 209 209
Note: See TracChangeset
for help on using the changeset viewer.