Changeset 53510
- Timestamp:
- 06/15/2022 02:42:58 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 3 edited
-
post/nav-menu.php (modified) (2 diffs)
-
rest-api/rest-posts-controller.php (modified) (2 diffs)
-
rest-api/rest-users-controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/nav-menu.php
r53509 r53510 231 231 $args = $action->get_args(); 232 232 $last = end( $args ); 233 $this->assert EqualSets( array( $post_id ), $last[1], '_prime_post_caches() was not executed.' );233 $this->assertSameSets( array( $post_id ), $last[1], '_prime_post_caches() was not executed.' ); 234 234 } 235 235 … … 263 263 $args = $action->get_args(); 264 264 $last = end( $args ); 265 $this->assert EqualSets( array( $term_id ), $last[1], '_prime_term_caches() was not executed.' );265 $this->assertSameSets( array( $term_id ), $last[1], '_prime_term_caches() was not executed.' ); 266 266 } 267 267 -
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r53509 r53510 1549 1549 $last = end( $args ); 1550 1550 $this->assertIsArray( $last, 'The last value is not an array' ); 1551 $this->assert EqualSets( $attachment_ids, $last[1] );1551 $this->assertSameSets( $attachment_ids, $last[1] ); 1552 1552 } 1553 1553 … … 1592 1592 $last = end( $args ); 1593 1593 $this->assertIsArray( $last, 'The last value is not an array' ); 1594 $this->assert EqualSets( $parent_ids, $last[1] );1594 $this->assertSameSets( $parent_ids, $last[1] ); 1595 1595 } 1596 1596 -
trunk/tests/phpunit/tests/rest-api/rest-users-controller.php
r52075 r53510 193 193 $data = $response->get_data(); 194 194 $keys = array_keys( $data['endpoints'][0]['args'] ); 195 $this->assert EqualSets(195 $this->assertSameSets( 196 196 array( 197 197 'context',
Note: See TracChangeset
for help on using the changeset viewer.