diff --git a/tests/phpunit/tests/comment/query.php b/tests/phpunit/tests/comment/query.php index 82c23bee41..88fe55eb8c 100644 --- a/tests/phpunit/tests/comment/query.php +++ b/tests/phpunit/tests/comment/query.php @@ -814,11 +814,10 @@ class Tests_Comment_Query extends WP_UnitTestCase { $comments = get_comments( array( 'author_url' => 'http://foo.bar', + 'fields' => 'ids', ) ); - $this->assertCount( 2, $comments ); - $this->assertSame( $c1, (int) $comments[0]->comment_ID ); - $this->assertSame( $c2, (int) $comments[1]->comment_ID ); + $this->assertEqualSets( array( $c1, $c2 ), $comments ); } /**