Changeset 51367 for trunk/tests/phpunit/tests/post/types.php
- Timestamp:
- 07/07/2021 10:32:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/types.php
r51331 r51367 350 350 $this->assertNotContains( '%foo%', $wp_rewrite->rewritecode ); 351 351 $this->assertNotContains( 'bar=', $wp_rewrite->queryreplace ); 352 $this->assert Same( --$count_before, count( $wp_rewrite->rewritereplace )); // Array was reduced by one value.352 $this->assertCount( --$count_before, $wp_rewrite->rewritereplace ); // Array was reduced by one value. 353 353 } 354 354 … … 462 462 463 463 $this->assertArrayHasKey( 'future_foo', $wp_filter ); 464 $this->assert Same( 1, count( $wp_filter['future_foo']->callbacks ));464 $this->assertCount( 1, $wp_filter['future_foo']->callbacks ); 465 465 $this->assertTrue( unregister_post_type( 'foo' ) ); 466 466 $this->assertArrayNotHasKey( 'future_foo', $wp_filter ); … … 482 482 483 483 $this->assertArrayHasKey( 'add_meta_boxes_foo', $wp_filter ); 484 $this->assert Same( 1, count( $wp_filter['add_meta_boxes_foo']->callbacks ));484 $this->assertCount( 1, $wp_filter['add_meta_boxes_foo']->callbacks ); 485 485 $this->assertTrue( unregister_post_type( 'foo' ) ); 486 486 $this->assertArrayNotHasKey( 'add_meta_boxes_foo', $wp_filter );
Note: See TracChangeset
for help on using the changeset viewer.