Changeset 51454 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 07/18/2021 02:10:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r51404 r51454 30 30 $this->assertIsArray( $t ); 31 31 $this->assertNotWPError( $t ); 32 $this->assert True( $t['term_id'] > 0);33 $this->assert True( $t['term_taxonomy_id'] > 0);32 $this->assertGreaterThan( 0, $t['term_id'] ); 33 $this->assertGreaterThan( 0, $t['term_taxonomy_id'] ); 34 34 $this->assertEquals( $initial_count + 1, wp_count_terms( array( 'taxonomy' => $taxonomy ) ) ); 35 35 36 36 // Make sure the term exists. 37 $this->assert True( term_exists( $term ) > 0);38 $this->assert True( term_exists( $t['term_id'] ) > 0);37 $this->assertGreaterThan( 0, term_exists( $term ) ); 38 $this->assertGreaterThan( 0, term_exists( $t['term_id'] ) ); 39 39 40 40 // Now delete it.
Note: See TracChangeset
for help on using the changeset viewer.