Changeset 54402 for trunk/tests/phpunit/tests/import/import.php
- Timestamp:
- 10/07/2022 01:02:07 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/import/import.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/import/import.php
r53864 r54402 63 63 64 64 // Check that terms were imported correctly. 65 $this->assert Equals( 30, wp_count_terms( array( 'taxonomy' => 'category' ) ) );66 $this->assert Equals( 3, wp_count_terms( array( 'taxonomy' => 'post_tag' ) ) );65 $this->assertSame( '30', wp_count_terms( array( 'taxonomy' => 'category' ) ) ); 66 $this->assertSame( '3', wp_count_terms( array( 'taxonomy' => 'post_tag' ) ) ); 67 67 $foo = get_term_by( 'slug', 'foo', 'category' ); 68 68 $this->assertSame( 0, $foo->parent ); … … 73 73 // Check that posts/pages were imported correctly. 74 74 $post_count = wp_count_posts( 'post' ); 75 $this->assert Equals( 5, $post_count->publish );76 $this->assert Equals( 1, $post_count->private );75 $this->assertSame( '5', $post_count->publish ); 76 $this->assertSame( '1', $post_count->private ); 77 77 $page_count = wp_count_posts( 'page' ); 78 $this->assert Equals( 4, $page_count->publish );79 $this->assert Equals( 1, $page_count->draft );78 $this->assertSame( '4', $page_count->publish ); 79 $this->assertSame( '1', $page_count->draft ); 80 80 $comment_count = wp_count_comments(); 81 81 $this->assertSame( 1, $comment_count->total_comments ); … … 231 231 $this->assertSame( 'author@example.org', $author->user_email ); 232 232 233 $this->assert Equals( 30, wp_count_terms( array( 'taxonomy' => 'category' ) ) );234 $this->assert Equals( 3, wp_count_terms( array( 'taxonomy' => 'post_tag' ) ) );233 $this->assertSame( '30', wp_count_terms( array( 'taxonomy' => 'category' ) ) ); 234 $this->assertSame( '3', wp_count_terms( array( 'taxonomy' => 'post_tag' ) ) ); 235 235 $foo = get_term_by( 'slug', 'foo', 'category' ); 236 236 $this->assertSame( 0, $foo->parent ); … … 240 240 241 241 $post_count = wp_count_posts( 'post' ); 242 $this->assert Equals( 5, $post_count->publish );243 $this->assert Equals( 1, $post_count->private );242 $this->assertSame( '5', $post_count->publish ); 243 $this->assertSame( '1', $post_count->private ); 244 244 $page_count = wp_count_posts( 'page' ); 245 $this->assert Equals( 4, $page_count->publish );246 $this->assert Equals( 1, $page_count->draft );245 $this->assertSame( '4', $page_count->publish ); 246 $this->assertSame( '1', $page_count->draft ); 247 247 $comment_count = wp_count_comments(); 248 248 $this->assertSame( 1, $comment_count->total_comments );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)