Changeset 51331 for trunk/tests/phpunit/tests/post/types.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/types.php
r48939 r51331 322 322 ); 323 323 324 $this->assertI nternalType( 'int',array_search( 'bar', $wp->public_query_vars, true ) );324 $this->assertIsInt( array_search( 'bar', $wp->public_query_vars, true ) ); 325 325 $this->assertTrue( unregister_post_type( 'foo' ) ); 326 326 $this->assertFalse( array_search( 'bar', $wp->public_query_vars, true ) ); … … 440 440 ); 441 441 442 $this->assertI nternalType( 'int',array_search( 'foo', $wp_taxonomies['category']->object_type, true ) );443 $this->assertI nternalType( 'int',array_search( 'foo', $wp_taxonomies['post_tag']->object_type, true ) );442 $this->assertIsInt( array_search( 'foo', $wp_taxonomies['category']->object_type, true ) ); 443 $this->assertIsInt( array_search( 'foo', $wp_taxonomies['post_tag']->object_type, true ) ); 444 444 $this->assertTrue( unregister_post_type( 'foo' ) ); 445 445 $this->assertFalse( array_search( 'foo', $wp_taxonomies['category']->object_type, true ) ); … … 500 500 ); 501 501 502 $this->assertI nternalType( 'object',$wp_post_types['foo'] );503 $this->assertI nternalType( 'object',get_post_type_object( 'foo' ) );502 $this->assertIsObject( $wp_post_types['foo'] ); 503 $this->assertIsObject( get_post_type_object( 'foo' ) ); 504 504 505 505 $this->assertTrue( unregister_post_type( 'foo' ) );
Note: See TracChangeset
for help on using the changeset viewer.