Changeset 51331 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r49451 r51331 819 819 register_taxonomy( 'foo', 'post', array( 'query_var' => 'bar' ) ); 820 820 821 $this->assertI nternalType( 'int',array_search( 'bar', $wp->public_query_vars, true ) );821 $this->assertIsInt( array_search( 'bar', $wp->public_query_vars, true ) ); 822 822 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 823 823 $this->assertFalse( array_search( 'bar', $wp->public_query_vars, true ) ); … … 841 841 ); 842 842 843 $this->assertI nternalType( 'array',$wp_rewrite->extra_permastructs['foo'] );843 $this->assertIsArray( $wp_rewrite->extra_permastructs['foo'] ); 844 844 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 845 845 $this->assertFalse( isset( $wp_rewrite->extra_permastructs['foo'] ) ); … … 874 874 register_taxonomy( 'foo', 'post' ); 875 875 876 $this->assertI nternalType( 'object',$wp_taxonomies['foo'] );877 $this->assertI nternalType( 'object',get_taxonomy( 'foo' ) );876 $this->assertIsObject( $wp_taxonomies['foo'] ); 877 $this->assertIsObject( get_taxonomy( 'foo' ) ); 878 878 879 879 $this->assertTrue( unregister_taxonomy( 'foo' ) );
Note: See TracChangeset
for help on using the changeset viewer.