Changeset 51367 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 07/07/2021 10:32:56 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r51337 r51367 863 863 $this->assertNotContains( '%foo%', $wp_rewrite->rewritecode ); 864 864 $this->assertNotContains( 'bar=', $wp_rewrite->queryreplace ); 865 $this->assert Same( --$count_before, count( $wp_rewrite->rewritereplace )); // Array was reduced by one value.865 $this->assertCount( --$count_before, $wp_rewrite->rewritereplace ); // Array was reduced by one value. 866 866 } 867 867 … … 892 892 893 893 $this->assertArrayHasKey( 'wp_ajax_add-foo', $wp_filter ); 894 $this->assert Same( 1, count( $wp_filter['wp_ajax_add-foo']->callbacks ));894 $this->assertCount( 1, $wp_filter['wp_ajax_add-foo']->callbacks ); 895 895 $this->assertTrue( unregister_taxonomy( 'foo' ) ); 896 896 $this->assertArrayNotHasKey( 'wp_ajax_add-foo', $wp_filter );
Note: See TracChangeset
for help on using the changeset viewer.