From 1fcb79f008298387e3001e2d589224f903bfa89d Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 14 Oct 2014 00:18:28 +0000 Subject: [PATCH] Use assertEqualSets() for a few taxonomy-related tests. assertEquals() was causing problems in environments where the tests take more than one second to run, thereby causing results to be returned in the incorrect order. git-svn-id: https://develop.svn.wordpress.org/trunk@29888 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/post/query.php b/tests/phpunit/tests/post/query.php index fa659a8fea..ad36158fa4 100644 --- a/tests/phpunit/tests/post/query.php +++ b/tests/phpunit/tests/post/query.php @@ -1459,7 +1459,7 @@ class Tests_Post_Query extends WP_UnitTestCase { ), ) ); - $this->assertEquals( array( $p1, $p2 ), $q->posts ); + $this->assertEqualSets( array( $p1, $p2 ), $q->posts ); } /** @@ -1502,7 +1502,7 @@ class Tests_Post_Query extends WP_UnitTestCase { ), ) ); - $this->assertEquals( array( $p1, $p2 ), $q->posts ); + $this->assertEqualSets( array( $p1, $p2 ), $q->posts ); } /** @@ -1780,7 +1780,7 @@ class Tests_Post_Query extends WP_UnitTestCase { ) ) ); $ids = $query->get_posts(); - $this->assertEquals( array( $post_id1, $post_id2 ), $ids ); + $this->assertEqualSets( array( $post_id1, $post_id2 ), $ids ); } /**