- 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-tags-controller.php
r51397 r51404 246 246 $data = $response->get_data(); 247 247 $ids = wp_list_pluck( $data, 'id' ); 248 $this->assert True( in_array( $id1, $ids, true ));249 $this->assert True( in_array( $id2, $ids, true ));248 $this->assertContains( $id1, $ids ); 249 $this->assertContains( $id2, $ids ); 250 250 251 251 $request->set_param( 'exclude', array( $id2 ) ); … … 253 253 $data = $response->get_data(); 254 254 $ids = wp_list_pluck( $data, 'id' ); 255 $this->assert True( in_array( $id1, $ids, true ));256 $this->assert False( in_array( $id2, $ids, true ));255 $this->assertContains( $id1, $ids ); 256 $this->assertNotContains( $id2, $ids ); 257 257 258 258 // Invalid 'exclude' should error.
Note: See TracChangeset
for help on using the changeset viewer.