Changeset 51367 for trunk/tests/phpunit/tests/term/wpSetObjectTerms.php
- Timestamp:
- 07/07/2021 10:32:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpSetObjectTerms.php
r51331 r51367 114 114 $tt = wp_set_object_terms( $id, array_values( $term_id ), $this->taxonomy ); 115 115 // Should return three term taxonomy IDs. 116 $this->assert Same( 3, count( $tt ));116 $this->assertCount( 3, $tt ); 117 117 } 118 118 … … 142 142 $tt = wp_set_object_terms( $id, $terms, $this->taxonomy ); 143 143 // Should return three term taxonomy IDs. 144 $this->assert Same( 3, count( $tt ));144 $this->assertCount( 3, $tt ); 145 145 // Remember which term has which term_id. 146 146 for ( $i = 0; $i < 3; $i++ ) { … … 269 269 // Set the initial terms. 270 270 $tt_1 = wp_set_object_terms( $post_id, $terms_1, $this->taxonomy ); 271 $this->assert Same( 3, count( $tt_1 ));271 $this->assertCount( 3, $tt_1 ); 272 272 273 273 // Make sure they're correct. … … 284 284 // Change the terms. 285 285 $tt_2 = wp_set_object_terms( $post_id, $terms_2, $this->taxonomy ); 286 $this->assert Same( 2, count( $tt_2 ));286 $this->assertCount( 2, $tt_2 ); 287 287 288 288 // Make sure they're correct. … … 313 313 // Set the initial terms. 314 314 $tt_1 = wp_set_object_terms( $post_id, $terms_1, $this->taxonomy ); 315 $this->assert Same( 3, count( $tt_1 ));315 $this->assertCount( 3, $tt_1 ); 316 316 317 317 // Make sure they're correct. … … 328 328 // Change the terms. 329 329 $tt_2 = wp_set_object_terms( $post_id, $terms_2, $this->taxonomy ); 330 $this->assert Same( 2, count( $tt_2 ));330 $this->assertCount( 2, $tt_2 ); 331 331 332 332 // Make sure they're correct.
Note: See TracChangeset
for help on using the changeset viewer.