- Timestamp:
- 07/10/2021 11:15:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php
r51367 r51397 44 44 $this->assertSame( $post_types['page']->name, $data['page']['slug'] ); 45 45 $this->check_post_type_obj( 'view', $post_types['page'], $data['page'], $data['page']['_links'] ); 46 $this->assert False( isset( $data['revision'] ));46 $this->assertArrayNotHasKey( 'revision', $data ); 47 47 } 48 48 … … 219 219 $this->assertSame( get_all_post_type_supports( $post_type_obj->name ), $data['supports'] ); 220 220 } else { 221 $this->assert False( isset( $data['capabilities'] ));222 $this->assert False( isset( $data['viewable'] ));223 $this->assert False( isset( $data['labels'] ));224 $this->assert False( isset( $data['supports'] ));221 $this->assertArrayNotHasKey( 'capabilities', $data ); 222 $this->assertArrayNotHasKey( 'viewable', $data ); 223 $this->assertArrayNotHasKey( 'labels', $data ); 224 $this->assertArrayNotHasKey( 'supports', $data ); 225 225 } 226 226 }
Note: See TracChangeset
for help on using the changeset viewer.