- Timestamp:
- 07/12/2021 10:35:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r51397 r51404 312 312 $data = $response->get_data(); 313 313 $ids = wp_list_pluck( $data, 'id' ); 314 $this->assert True( in_array( $id1, $ids, true ));315 $this->assert True( in_array( $id2, $ids, true ));314 $this->assertContains( $id1, $ids ); 315 $this->assertContains( $id2, $ids ); 316 316 317 317 $request->set_param( 'exclude', array( $id2 ) ); … … 319 319 $data = $response->get_data(); 320 320 $ids = wp_list_pluck( $data, 'id' ); 321 $this->assert True( in_array( $id1, $ids, true ));322 $this->assert False( in_array( $id2, $ids, true ));321 $this->assertContains( $id1, $ids ); 322 $this->assertNotContains( $id2, $ids ); 323 323 } 324 324
Note: See TracChangeset
for help on using the changeset viewer.