From 092e51042c1e8724126db0c82e283d80c95f76f1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 13 Jul 2014 11:27:07 +0000 Subject: [PATCH] Use assertEqualSets() instead of direct array comparison. see #28434. git-svn-id: https://develop.svn.wordpress.org/trunk@29134 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/comment/query.php b/tests/phpunit/tests/comment/query.php index d2a5e91fd3..51140a7cc3 100644 --- a/tests/phpunit/tests/comment/query.php +++ b/tests/phpunit/tests/comment/query.php @@ -196,6 +196,6 @@ class Tests_Comment_Query extends WP_UnitTestCase { $comment_ids = get_comments( array( 'fields' => 'ids' ) ); $this->assertCount( 3, $comment_ids ); - $this->assertEquals( array( $comment_1, $comment_2, $comment_3 ), $comment_ids ); + $this->assertEqualSets( array( $comment_1, $comment_2, $comment_3 ), $comment_ids ); } }