Use assertCount() for consistency with other tests.
see #28611. git-svn-id: https://develop.svn.wordpress.org/trunk@28809 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2120ede170
commit
ee307dc160
@ -648,7 +648,7 @@ class Tests_Query_Results extends WP_UnitTestCase {
|
||||
$post_3 = $this->factory->post->create( array( 'post_title' => 'Getting Started', 'post_parent' => $post_2, 'post_type' => 'handbook' ) );
|
||||
|
||||
$result = $this->q->query( array( 'handbook' => 'getting-started', 'post_type' => 'handbook' ) );
|
||||
$this->assertEquals( 1, $this->q->post_count );
|
||||
$this->assertCount( 1, $result );
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user