Changeset 41174 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 07/27/2017 04:59:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r40921 r41174 765 765 register_taxonomy( 'foo', 'post' ); 766 766 767 $this->assertSame( 1, count( $wp_filter['wp_ajax_add-foo'] ) ); 767 $this->assertArrayHasKey( 'wp_ajax_add-foo', $wp_filter ); 768 $this->assertSame( 1, count( $wp_filter['wp_ajax_add-foo']->callbacks ) ); 768 769 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 769 770 $this->assertArrayNotHasKey( 'wp_ajax_add-foo', $wp_filter );
Note: See TracChangeset
for help on using the changeset viewer.