Skip to content

Commit ee307dc

Browse files
Use assertCount() for consistency with other tests.
see #28611. git-svn-id: https://develop.svn.wordpress.org/trunk@28809 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2120ede commit ee307dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/tests/query/results.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ function test_duplicate_slug_in_hierarchical_post_type() {
648648
$post_3 = $this->factory->post->create( array( 'post_title' => 'Getting Started', 'post_parent' => $post_2, 'post_type' => 'handbook' ) );
649649

650650
$result = $this->q->query( array( 'handbook' => 'getting-started', 'post_type' => 'handbook' ) );
651-
$this->assertEquals( 1, $this->q->post_count );
651+
$this->assertCount( 1, $result );
652652
}
653653

654654
}

0 commit comments

Comments
 (0)