Changeset 48840 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 08/21/2020 10:30:06 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r47122 r48840 25 25 $this->assertNull( term_exists( $term ) ); 26 26 27 $initial_count = wp_count_terms( $taxonomy);27 $initial_count = wp_count_terms( array( 'taxonomy' => $taxonomy ) ); 28 28 29 29 $t = wp_insert_term( $term, $taxonomy ); … … 32 32 $this->assertTrue( $t['term_id'] > 0 ); 33 33 $this->assertTrue( $t['term_taxonomy_id'] > 0 ); 34 $this->assertEquals( $initial_count + 1, wp_count_terms( $taxonomy) );34 $this->assertEquals( $initial_count + 1, wp_count_terms( array( 'taxonomy' => $taxonomy ) ) ); 35 35 36 36 // Make sure the term exists. … … 44 44 $this->assertNull( term_exists( $term ) ); 45 45 $this->assertNull( term_exists( $t['term_id'] ) ); 46 $this->assertEquals( $initial_count, wp_count_terms( $taxonomy) );46 $this->assertEquals( $initial_count, wp_count_terms( array( 'taxonomy' => $taxonomy ) ) ); 47 47 } 48 48
Note: See TracChangeset
for help on using the changeset viewer.