From f450acf7afdce2859d5ede3656626ca5538b592b Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 20 Sep 2022 03:56:45 +0000 Subject: [PATCH] Posts, Post types: Coding standards fixes following [54234]. Props costdev. See #36905. git-svn-id: https://develop.svn.wordpress.org/trunk@54242 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/getPageByTitle.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/post/getPageByTitle.php b/tests/phpunit/tests/post/getPageByTitle.php index 4b1f9b20b2..a09599c289 100644 --- a/tests/phpunit/tests/post/getPageByTitle.php +++ b/tests/phpunit/tests/post/getPageByTitle.php @@ -166,7 +166,7 @@ class Tests_Post_GetPageByTitle extends WP_UnitTestCase { $found = get_page_by_title( 'foo', OBJECT, 'wptests_pt' ); $this->assertSame( $p2, $found->ID, 'Should find a post with post type wptests_pt.' ); - $num_queries ++; + ++$num_queries; $this->assertSame( $num_queries, get_num_queries(), 'Should result in another database query.' ); } @@ -196,7 +196,7 @@ class Tests_Post_GetPageByTitle extends WP_UnitTestCase { $found = get_page_by_title( 'bar' ); $this->assertSame( $page, $found->ID, 'Should find a page with the new title.' ); - $num_queries++; + ++$num_queries; $this->assertSame( $num_queries, get_num_queries(), 'Should result in another database query.' ); } @@ -223,7 +223,7 @@ class Tests_Post_GetPageByTitle extends WP_UnitTestCase { $this->assertSame( $num_queries, get_num_queries(), 'Should not result in another database query.' ); $array_n = get_page_by_title( 'foo', ARRAY_N ); - $num_queries++; // Add one database query for loading of post metadata. + ++$num_queries; // Add one database query for loading of post metadata. $this->assertIsArray( $array_n, 'Should be numbric array.' ); $this->assertSame( $page, $array_n[0], 'Should match post id.' ); $this->assertSame( $num_queries, get_num_queries(), 'Should not result in another database query.' );