- Timestamp:
- 07/12/2021 10:35:44 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r51397 r51404 303 303 $this->assertCount( 2, $data ); 304 304 $ids = wp_list_pluck( $data, 'id' ); 305 $this->assert True( in_array( $id1, $ids, true ));306 $this->assert False( in_array( $id2, $ids, true ));307 $this->assert True( in_array( $id3, $ids, true ));305 $this->assertContains( $id1, $ids ); 306 $this->assertNotContains( $id2, $ids ); 307 $this->assertContains( $id3, $ids ); 308 308 309 309 $this->check_get_posts_response( $response ); … … 344 344 $this->assertCount( 3, $data ); 345 345 $ids = wp_list_pluck( $data, 'id' ); 346 $this->assert True( in_array( $id1, $ids, true ));347 $this->assert True( in_array( $id2, $ids, true ));348 $this->assert True( in_array( $id3, $ids, true ));346 $this->assertContains( $id1, $ids ); 347 $this->assertContains( $id2, $ids ); 348 $this->assertContains( $id3, $ids ); 349 349 } 350 350
Note: See TracChangeset
for help on using the changeset viewer.