@@ -166,7 +166,7 @@ public function test_cache_should_not_match_post_in_different_post_type_with_sam
166
166
167
167
$ found = get_page_by_title ( 'foo ' , OBJECT , 'wptests_pt ' );
168
168
$ this ->assertSame ( $ p2 , $ found ->ID , 'Should find a post with post type wptests_pt. ' );
169
- $ num_queries ++ ;
169
+ ++ $ num_queries ;
170
170
$ this ->assertSame ( $ num_queries , get_num_queries (), 'Should result in another database query. ' );
171
171
}
172
172
@@ -196,7 +196,7 @@ public function test_cache_should_be_invalidated_when_post_title_is_edited() {
196
196
197
197
$ found = get_page_by_title ( 'bar ' );
198
198
$ this ->assertSame ( $ page , $ found ->ID , 'Should find a page with the new title. ' );
199
- $ num_queries ++ ;
199
+ ++ $ num_queries ;
200
200
$ this ->assertSame ( $ num_queries , get_num_queries (), 'Should result in another database query. ' );
201
201
}
202
202
@@ -223,7 +223,7 @@ public function test_output_param_should_be_obeyed_for_cached_value() {
223
223
$ this ->assertSame ( $ num_queries , get_num_queries (), 'Should not result in another database query. ' );
224
224
225
225
$ 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.
227
227
$ this ->assertIsArray ( $ array_n , 'Should be numbric array. ' );
228
228
$ this ->assertSame ( $ page , $ array_n [0 ], 'Should match post id. ' );
229
229
$ this ->assertSame ( $ num_queries , get_num_queries (), 'Should not result in another database query. ' );
0 commit comments