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:
Sergey Biryukov 2014-06-23 22:26:12 +00:00
parent 2120ede170
commit ee307dc160
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}