From 307c3ca81fc8a05cb52cf4cc185c204acb9d32cd Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sun, 27 Sep 2015 02:00:49 +0000 Subject: [PATCH] `WP_Comment::get_children()` test should be order-agnostic. See #8071. git-svn-id: https://develop.svn.wordpress.org/trunk@34623 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/comment.php b/tests/phpunit/tests/comment.php index cdbfd3a35f..465fa49ba1 100644 --- a/tests/phpunit/tests/comment.php +++ b/tests/phpunit/tests/comment.php @@ -334,10 +334,10 @@ class Tests_Comment extends WP_UnitTestCase { $children = $comment->get_children(); // Direct descendants of $c1. - $this->assertEquals( array( $c2, $c4 ), array_values( wp_list_pluck( $children, 'comment_ID' ) ) ); + $this->assertEqualSets( array( $c2, $c4 ), array_values( wp_list_pluck( $children, 'comment_ID' ) ) ); // Direct descendants of $c2. - $this->assertEquals( array( $c3 ), array_values( wp_list_pluck( $children[ $c2 ]->get_children(), 'comment_ID' ) ) ); + $this->assertEqualSets( array( $c3 ), array_values( wp_list_pluck( $children[ $c2 ]->get_children(), 'comment_ID' ) ) ); } /**