From 8e6997b652b84ecfad44f75a408471fcef1e5ea9 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 7 Jul 2015 00:57:04 +0000 Subject: [PATCH] Use `assertEqualSets()` in `WP_Query::parse_tax_query()` tests. Props ocean90. See #32454. git-svn-id: https://develop.svn.wordpress.org/trunk@33102 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/query.php b/tests/phpunit/tests/query.php index ab1e61f42a..e5dd7d7e70 100644 --- a/tests/phpunit/tests/query.php +++ b/tests/phpunit/tests/query.php @@ -155,7 +155,7 @@ class Tests_Query extends WP_UnitTestCase { $this->go_to( $url ); - $this->assertEquals( array( $p1, $p2 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) ); + $this->assertEqualSets( array( $p1, $p2 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) ); } public function test_custom_taxonomy_querystring_multiple_terms_comma_separated() { @@ -181,7 +181,7 @@ class Tests_Query extends WP_UnitTestCase { $this->go_to( $url ); - $this->assertEquals( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) ); + $this->assertEqualSets( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) ); } /** @@ -210,6 +210,6 @@ class Tests_Query extends WP_UnitTestCase { $this->go_to( $url ); - $this->assertEquals( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) ); + $this->assertEqualSets( array( $p1, $p2, $p3 ), wp_list_pluck( $GLOBALS['wp_query']->posts, 'ID' ) ); } }