Changeset 56421 for trunk/tests/phpunit/tests/post/getPostTypeLabels.php
- Timestamp:
- 08/21/2023 03:53:04 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPostTypeLabels.php
r51331 r56421 96 96 unregister_post_type( 'foo' ); 97 97 98 $this->assertObjectHas Attribute( 'labels', $post_type_object );99 $this->assertObjectHas Attribute( 'label', $post_type_object );100 $this->assertObjectHas Attribute( 'not_found_in_trash', $post_type_object->labels );98 $this->assertObjectHasProperty( 'labels', $post_type_object ); 99 $this->assertObjectHasProperty( 'label', $post_type_object ); 100 $this->assertObjectHasProperty( 'not_found_in_trash', $post_type_object->labels ); 101 101 } 102 102 … … 123 123 register_post_type( 'foo' ); 124 124 125 $this->assertObjectHas Attribute( 'featured_image', get_post_type_object( 'foo' )->labels );126 $this->assertObjectHas Attribute( 'set_featured_image', get_post_type_object( 'foo' )->labels );125 $this->assertObjectHasProperty( 'featured_image', get_post_type_object( 'foo' )->labels ); 126 $this->assertObjectHasProperty( 'set_featured_image', get_post_type_object( 'foo' )->labels ); 127 127 128 128 unregister_post_type( 'foo' );
Note: See TracChangeset
for help on using the changeset viewer.