Changeset 48840 for trunk/tests/phpunit/tests/import/import.php
- Timestamp:
- 08/21/2020 10:30:06 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/import/import.php
r47526 r48840 66 66 67 67 // Check that terms were imported correctly. 68 $this->assertEquals( 30, wp_count_terms( 'category') );69 $this->assertEquals( 3, wp_count_terms( 'post_tag') );68 $this->assertEquals( 30, wp_count_terms( array( 'taxonomy' => 'category' ) ) ); 69 $this->assertEquals( 3, wp_count_terms( array( 'taxonomy' => 'post_tag' ) ) ); 70 70 $foo = get_term_by( 'slug', 'foo', 'category' ); 71 71 $this->assertEquals( 0, $foo->parent ); … … 231 231 $this->assertEquals( 'author@example.org', $author->user_email ); 232 232 233 $this->assertEquals( 30, wp_count_terms( 'category') );234 $this->assertEquals( 3, wp_count_terms( 'post_tag') );233 $this->assertEquals( 30, wp_count_terms( array( 'taxonomy' => 'category' ) ) ); 234 $this->assertEquals( 3, wp_count_terms( array( 'taxonomy' => 'post_tag' ) ) ); 235 235 $foo = get_term_by( 'slug', 'foo', 'category' ); 236 236 $this->assertEquals( 0, $foo->parent );
Note: See TracChangeset
for help on using the changeset viewer.