Changeset 41174 for trunk/tests/phpunit/tests/post/types.php
- Timestamp:
- 07/27/2017 04:59:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/types.php
r40635 r41174 424 424 ) ); 425 425 426 $this->assertSame( 1, count( $wp_filter['future_foo'] ) ); 426 $this->assertArrayHasKey( 'future_foo', $wp_filter ); 427 $this->assertSame( 1, count( $wp_filter['future_foo']->callbacks ) ); 427 428 $this->assertTrue( unregister_post_type( 'foo' ) ); 428 429 $this->assertArrayNotHasKey( 'future_foo', $wp_filter ); … … 440 441 ) ); 441 442 442 $this->assertSame( 1, count( $wp_filter['add_meta_boxes_foo'] ) ); 443 $this->assertArrayHasKey( 'add_meta_boxes_foo', $wp_filter ); 444 $this->assertSame( 1, count( $wp_filter['add_meta_boxes_foo']->callbacks ) ); 443 445 $this->assertTrue( unregister_post_type( 'foo' ) ); 444 446 $this->assertArrayNotHasKey( 'add_meta_boxes_foo', $wp_filter );
Note: See TracChangeset
for help on using the changeset viewer.