Changeset 51367 for trunk/tests/phpunit/tests/term/getTheTerms.php
- Timestamp:
- 07/07/2021 10:32:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTheTerms.php
r51335 r51367 23 23 // Cache should be empty after a set. 24 24 $tt_1 = wp_set_object_terms( $post_id, $terms_1, $this->taxonomy ); 25 $this->assert Same( 3, count( $tt_1 ));25 $this->assertCount( 3, $tt_1 ); 26 26 $this->assertFalse( wp_cache_get( $post_id, $this->taxonomy . '_relationships' ) ); 27 27 … … 44 44 // Cache should be empty after a set. 45 45 $tt_2 = wp_set_object_terms( $post_id, $terms_2, $this->taxonomy ); 46 $this->assert Same( 2, count( $tt_2 ));46 $this->assertCount( 2, $tt_2 ); 47 47 $this->assertFalse( wp_cache_get( $post_id, $this->taxonomy . '_relationships' ) ); 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.