From b09103c101f99c7b7fbd44734d9356877405ed2d Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Thu, 6 Nov 2014 22:27:34 +0000 Subject: [PATCH] Use `assertEqualSets()` for some `WP_Comment_Query` tests. git-svn-id: https://develop.svn.wordpress.org/trunk@30266 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment/query.php | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/phpunit/tests/comment/query.php b/tests/phpunit/tests/comment/query.php index 9345851b2f..77be42c4d7 100644 --- a/tests/phpunit/tests/comment/query.php +++ b/tests/phpunit/tests/comment/query.php @@ -27,7 +27,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c2, $c3, $c4, $c5 ), $found ); + $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c5 ), $found ); } /** @@ -46,7 +46,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c2, $c3, $c4, $c5 ), $found ); + $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c5 ), $found ); } /** @@ -65,7 +65,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1 ), $found ); + $this->assertEqualSets( array( $c1 ), $found ); } public function test_query_type_pingback() { @@ -80,7 +80,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c2, $c3 ), $found ); } @@ -96,7 +96,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c2, $c3 ), $found ); } @@ -116,7 +116,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c2, $c3 ), $found ); } /** @@ -137,7 +137,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c4, $c6 ), $found ); + $this->assertEqualSets( array( $c1, $c4, $c6 ), $found ); } /** @@ -157,7 +157,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c2, $c3, $c4, $c6 ), $found ); + $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c6 ), $found ); } /** @@ -178,7 +178,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1 ), $found ); + $this->assertEqualSets( array( $c1 ), $found ); } /** @@ -199,7 +199,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c2, $c3 ), $found ); } /** @@ -219,7 +219,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c2, $c3, $c4, $c6 ), $found ); + $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c6 ), $found ); } /** @@ -238,7 +238,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c1, $c2, $c3 ), $found ); } /** @@ -255,7 +255,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c1, $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c1, $c2, $c3 ), $found ); } /** @@ -306,7 +306,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { 'fields' => 'ids', ) ); - $this->assertEquals( array( $c2, $c3 ), $found ); + $this->assertEqualSets( array( $c2, $c3 ), $found ); } /**