From ee307dc160de4646704e68a9801c7690b3514fc1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Jun 2014 22:26:12 +0000 Subject: [PATCH] Use assertCount() for consistency with other tests. see #28611. git-svn-id: https://develop.svn.wordpress.org/trunk@28809 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query/results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/query/results.php b/tests/phpunit/tests/query/results.php index a71e52757b..e3d5872954 100644 --- a/tests/phpunit/tests/query/results.php +++ b/tests/phpunit/tests/query/results.php @@ -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 ); } }