- 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-pages-controller.php
r48937 r48939 185 185 $data = $response->get_data(); 186 186 $this->assertSame( 2, count( $data ) ); 187 $this->assert EqualSets( array( $id2, $id4 ), wp_list_pluck( $data, 'id' ) );187 $this->assertSameSets( array( $id2, $id4 ), wp_list_pluck( $data, 'id' ) ); 188 188 } 189 189 … … 255 255 $response = rest_get_server()->dispatch( $request ); 256 256 $data = $response->get_data(); 257 $this->assert EqualSets( array( $id1, $id2, $id3, $id4 ), wp_list_pluck( $data, 'id' ) );257 $this->assertSameSets( array( $id1, $id2, $id3, $id4 ), wp_list_pluck( $data, 'id' ) ); 258 258 259 259 // Filter to 'menu_order'. … … 261 261 $response = rest_get_server()->dispatch( $request ); 262 262 $data = $response->get_data(); 263 $this->assert EqualSets( array( $id4 ), wp_list_pluck( $data, 'id' ) );263 $this->assertSameSets( array( $id4 ), wp_list_pluck( $data, 'id' ) ); 264 264 265 265 // Order by 'menu order'.
Note: See TracChangeset
for help on using the changeset viewer.