Use assertEqualSets() instead of direct array comparison.

see #28434.

git-svn-id: https://develop.svn.wordpress.org/trunk@29134 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-07-13 11:27:07 +00:00
parent 33db0d4ff2
commit 092e51042c
1 changed files with 1 additions and 1 deletions

View File

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