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:
parent
33db0d4ff2
commit
092e51042c
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user