Skip to content

Commit f450acf

Browse files
committed
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
1 parent 826e1a3 commit f450acf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/phpunit/tests/post/getPageByTitle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function test_cache_should_not_match_post_in_different_post_type_with_sam
166166

167167
$found = get_page_by_title( 'foo', OBJECT, 'wptests_pt' );
168168
$this->assertSame( $p2, $found->ID, 'Should find a post with post type wptests_pt.' );
169-
$num_queries ++;
169+
++$num_queries;
170170
$this->assertSame( $num_queries, get_num_queries(), 'Should result in another database query.' );
171171
}
172172

@@ -196,7 +196,7 @@ public function test_cache_should_be_invalidated_when_post_title_is_edited() {
196196

197197
$found = get_page_by_title( 'bar' );
198198
$this->assertSame( $page, $found->ID, 'Should find a page with the new title.' );
199-
$num_queries++;
199+
++$num_queries;
200200
$this->assertSame( $num_queries, get_num_queries(), 'Should result in another database query.' );
201201
}
202202

@@ -223,7 +223,7 @@ public function test_output_param_should_be_obeyed_for_cached_value() {
223223
$this->assertSame( $num_queries, get_num_queries(), 'Should not result in another database query.' );
224224

225225
$array_n = get_page_by_title( 'foo', ARRAY_N );
226-
$num_queries++; // Add one database query for loading of post metadata.
226+
++$num_queries; // Add one database query for loading of post metadata.
227227
$this->assertIsArray( $array_n, 'Should be numbric array.' );
228228
$this->assertSame( $page, $array_n[0], 'Should match post id.' );
229229
$this->assertSame( $num_queries, get_num_queries(), 'Should not result in another database query.' );

0 commit comments

Comments
 (0)