diff --git a/tests/phpunit/tests/comment/query.php b/tests/phpunit/tests/comment/query.php index 6a367e43b4..2e4813e5e8 100644 --- a/tests/phpunit/tests/comment/query.php +++ b/tests/phpunit/tests/comment/query.php @@ -3988,7 +3988,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { ); $this->assertSame( 3, $q->found_comments ); - $this->assertEquals( 2, $q->max_num_pages ); + $this->assertSame( 2, $q->max_num_pages ); } /** @@ -4017,7 +4017,7 @@ class Tests_Comment_Query extends WP_UnitTestCase { ); $this->assertSame( 3, $q->found_comments ); - $this->assertEquals( 2, $q->max_num_pages ); + $this->assertSame( 2, $q->max_num_pages ); } /** diff --git a/tests/phpunit/tests/post/query.php b/tests/phpunit/tests/post/query.php index 9c118cbb9e..151a1d73f8 100644 --- a/tests/phpunit/tests/post/query.php +++ b/tests/phpunit/tests/post/query.php @@ -631,7 +631,7 @@ class Tests_Post_Query extends WP_UnitTestCase { ); $this->assertSame( 2, $q->found_posts ); - $this->assertEquals( 2, $q->max_num_pages ); + $this->assertSame( 2, $q->max_num_pages ); } /** @@ -654,7 +654,7 @@ class Tests_Post_Query extends WP_UnitTestCase { ); $this->assertSame( 2, $q->found_posts ); - $this->assertEquals( 2, $q->max_num_pages ); + $this->assertSame( 2, $q->max_num_pages ); } /** @@ -680,7 +680,7 @@ class Tests_Post_Query extends WP_UnitTestCase { remove_filter( 'split_the_query', '__return_true' ); $this->assertSame( 2, $q->found_posts ); - $this->assertEquals( 2, $q->max_num_pages ); + $this->assertSame( 2, $q->max_num_pages ); } /** @@ -707,7 +707,7 @@ class Tests_Post_Query extends WP_UnitTestCase { remove_filter( 'split_the_query', '__return_false' ); $this->assertSame( 2, $q->found_posts ); - $this->assertEquals( 2, $q->max_num_pages ); + $this->assertSame( 2, $q->max_num_pages ); } /** diff --git a/tests/phpunit/tests/query/fieldsClause.php b/tests/phpunit/tests/query/fieldsClause.php index 28c040d79c..c5febb9733 100644 --- a/tests/phpunit/tests/query/fieldsClause.php +++ b/tests/phpunit/tests/query/fieldsClause.php @@ -62,7 +62,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase { $this->assertEqualSets( $expected, $q->posts, 'Posts property for first query is not of expected form.' ); $this->assertSame( 5, $q->found_posts, 'Number of found posts is not five.' ); - $this->assertEquals( 1, $q->max_num_pages, 'Number of found pages is not one.' ); + $this->assertSame( 1, $q->max_num_pages, 'Number of found pages is not one.' ); // Test the second query's results match. $q2 = new WP_Query( $query_args ); @@ -86,7 +86,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase { $this->assertEqualSets( $expected, $q->posts, 'Posts property for first query is not of expected form.' ); $this->assertSame( 5, $q->found_posts, 'Number of found posts is not five.' ); - $this->assertEquals( 1, $q->max_num_pages, 'Number of found pages is not one.' ); + $this->assertSame( 1, $q->max_num_pages, 'Number of found pages is not one.' ); // Test the second query's results match. $q2 = new WP_Query( $query_args ); @@ -110,7 +110,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase { $this->assertEqualSets( $expected, $q->posts, 'Posts property for first query is not of expected form.' ); $this->assertSame( 5, $q->found_posts, 'Number of found posts is not five.' ); - $this->assertEquals( 1, $q->max_num_pages, 'Number of found pages is not one.' ); + $this->assertSame( 1, $q->max_num_pages, 'Number of found pages is not one.' ); // Test the second query's results match. $q2 = new WP_Query( $query_args ); @@ -145,7 +145,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase { $this->assertEqualSets( $expected, $q->posts, 'Posts property for first query is not of expected form.' ); $this->assertSame( 5, $q->found_posts, 'Number of found posts is not five.' ); - $this->assertEquals( 1, $q->max_num_pages, 'Number of found pages is not one.' ); + $this->assertSame( 1, $q->max_num_pages, 'Number of found pages is not one.' ); // Test the second query's results match. $q2 = new WP_Query( $query_args ); @@ -173,7 +173,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase { $this->assertEqualSets( $expected, $q->posts, 'Posts property for first query is not of expected form.' ); $this->assertSame( 5, $q->found_posts, 'Number of found posts is not five.' ); - $this->assertEquals( 1, $q->max_num_pages, 'Number of found pages is not one.' ); + $this->assertSame( 1, $q->max_num_pages, 'Number of found pages is not one.' ); // Test the second query's results match. $q2 = new WP_Query( $query_args ); @@ -204,7 +204,7 @@ class Tests_Query_FieldsClause extends WP_UnitTestCase { $this->assertEqualSets( $expected, $q->posts, 'Posts property for first query is not of expected form.' ); $this->assertSame( 5, $q->found_posts, 'Number of found posts is not five.' ); - $this->assertEquals( 1, $q->max_num_pages, 'Number of found pages is not one.' ); + $this->assertSame( 1, $q->max_num_pages, 'Number of found pages is not one.' ); // Test the second query's results match. $q2 = new WP_Query( $query_args );