mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user