Skip to content

Commit

Permalink
Coding Standards: Fix WPCS issues in [51367].
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SergeyBiryukov committed Jul 7, 2021
1 parent e776910 commit 73e24c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/post/getPages.php
Expand Up @@ -277,7 +277,7 @@ function test_get_pages_meta() {
)
)
);
$this->assertCount( 3, get_pages( array( 'meta_key' => 'some-meta-key' ) ) );
$this->assertCount( 3, get_pages( array( 'meta_key' => 'some-meta-key' ) ) );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/query/metaQuery.php
Expand Up @@ -1704,7 +1704,7 @@ public function test_empty_meta_value() {
$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 );
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/rest-api/rest-posts-controller.php
Expand Up @@ -509,7 +509,7 @@ public function test_get_items_search_query() {
$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' );
Expand Down

0 comments on commit 73e24c9

Please sign in to comment.