Changeset 45607 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r43571 r45607 812 812 register_taxonomy( 'foo', 'post', array( 'query_var' => 'bar' ) ); 813 813 814 $this->assertInternalType( 'int', array_search( 'bar', $wp->public_query_vars ) );814 $this->assertInternalType( 'int', array_search( 'bar', $wp->public_query_vars, true ) ); 815 815 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 816 $this->assertFalse( array_search( 'bar', $wp->public_query_vars ) );816 $this->assertFalse( array_search( 'bar', $wp->public_query_vars, true ) ); 817 817 } 818 818
Note: See TracChangeset
for help on using the changeset viewer.