Changeset 54402 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 10/07/2022 01:02:07 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r54091 r54402 76 76 ); 77 77 // There are 5 posts, all Uncategorized. 78 $this->assert Equals( 1, $count );78 $this->assertSame( '1', $count ); 79 79 } 80 80 … … 87 87 // Counts all terms (1 default category, 5 tags). 88 88 $count = wp_count_terms(); 89 $this->assert Equals( 6, $count );89 $this->assertSame( '6', $count ); 90 90 91 91 // Counts only tags (5), with both current and legacy signature. … … 93 93 $count = wp_count_terms( array( 'taxonomy' => 'post_tag' ) ); 94 94 $legacy_count = wp_count_terms( 'post_tag' ); 95 $this->assert Equals( 5, $count );96 $this->assert Equals( $count, $legacy_count );95 $this->assertSame( '5', $count ); 96 $this->assertSame( $count, $legacy_count ); 97 97 } 98 98 … … 160 160 $this->assertNotWPError( $t ); 161 161 $this->assertGreaterThan( 0, $t ); 162 $this->assert Equals( $initial_count + 1, wp_count_terms( array( 'taxonomy' => 'category' ) ) );162 $this->assertSame( (string) ( $initial_count + 1 ), wp_count_terms( array( 'taxonomy' => 'category' ) ) ); 163 163 164 164 // Make sure the term exists. … … 170 170 $this->assertNull( term_exists( $term ) ); 171 171 $this->assertNull( term_exists( $t ) ); 172 $this->assert Equals( $initial_count, wp_count_terms( array( 'taxonomy' => 'category' ) ) );172 $this->assertSame( $initial_count, wp_count_terms( array( 'taxonomy' => 'category' ) ) ); 173 173 } 174 174
Note: See TracChangeset
for help on using the changeset viewer.