Changeset 51397 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 07/10/2021 11:15:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r51367 r51397 843 843 $this->assertIsArray( $wp_rewrite->extra_permastructs['foo'] ); 844 844 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 845 $this->assert False( isset( $wp_rewrite->extra_permastructs['foo'] ));845 $this->assertArrayNotHasKey( 'foo', $wp_rewrite->extra_permastructs ); 846 846 } 847 847 … … 879 879 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 880 880 881 $this->assert False( isset( $wp_taxonomies['foo'] ));881 $this->assertArrayNotHasKey( 'foo', $wp_taxonomies ); 882 882 $this->assertFalse( get_taxonomy( 'foo' ) ); 883 883 }
Note: See TracChangeset
for help on using the changeset viewer.