From 73e24c997c1182ac48856c1546cf4719b51ae27d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 7 Jul 2021 10:50:43 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in [51367]. This fixes an "Expected 1 space after comma in argument list; 2 found" error. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51368 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/getPages.php | 2 +- tests/phpunit/tests/query/metaQuery.php | 2 +- tests/phpunit/tests/rest-api/rest-posts-controller.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/post/getPages.php b/tests/phpunit/tests/post/getPages.php index 94eb7fbdc4..e12a07d941 100644 --- a/tests/phpunit/tests/post/getPages.php +++ b/tests/phpunit/tests/post/getPages.php @@ -277,7 +277,7 @@ class Tests_Post_GetPages extends WP_UnitTestCase { ) ) ); - $this->assertCount( 3, get_pages( array( 'meta_key' => 'some-meta-key' ) ) ); + $this->assertCount( 3, get_pages( array( 'meta_key' => 'some-meta-key' ) ) ); } /** diff --git a/tests/phpunit/tests/query/metaQuery.php b/tests/phpunit/tests/query/metaQuery.php index 9a26ce2d2a..c9e73ec8a5 100644 --- a/tests/phpunit/tests/query/metaQuery.php +++ b/tests/phpunit/tests/query/metaQuery.php @@ -1704,7 +1704,7 @@ class Tests_Query_MetaQuery extends WP_UnitTestCase { $this->assertSameSets( array( $post_id, $post_id3, $post_id4, $post_id5, $post_id6 ), $posts ); $posts = get_posts( array( 'meta_value' => '0' ) ); - $this->assertCount( 5, $posts ); + $this->assertCount( 5, $posts ); foreach ( $posts as $post ) { $this->assertInstanceOf( 'WP_Post', $post ); $this->assertSame( 'raw', $post->filter ); diff --git a/tests/phpunit/tests/rest-api/rest-posts-controller.php b/tests/phpunit/tests/rest-api/rest-posts-controller.php index 3d94ea007f..d1a8c48732 100644 --- a/tests/phpunit/tests/rest-api/rest-posts-controller.php +++ b/tests/phpunit/tests/rest-api/rest-posts-controller.php @@ -509,7 +509,7 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); $request->set_param( 'per_page', self::$per_page ); $response = rest_get_server()->dispatch( $request ); - $this->assertCount( $total_posts, $response->get_data() ); + $this->assertCount( $total_posts, $response->get_data() ); $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); $request->set_param( 'search', 'Search Result' );