WordPress.org

Make WordPress Core

Changeset 51368


Ignore:
Timestamp:
07/07/2021 10:50:43 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in [51367].

This fixes an "Expected 1 space after comma in argument list; 2 found" error.

See #53363.

Location:
trunk/tests/phpunit/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/getPages.php

    r51367 r51368  
    278278            )
    279279        );
    280         $this->assertCount( 3,  get_pages( array( 'meta_key' => 'some-meta-key' ) ) );
     280        $this->assertCount( 3, get_pages( array( 'meta_key' => 'some-meta-key' ) ) );
    281281    }
    282282
  • trunk/tests/phpunit/tests/query/metaQuery.php

    r51367 r51368  
    17051705
    17061706        $posts = get_posts( array( 'meta_value' => '0' ) );
    1707         $this->assertCount( 5,  $posts );
     1707        $this->assertCount( 5, $posts );
    17081708        foreach ( $posts as $post ) {
    17091709            $this->assertInstanceOf( 'WP_Post', $post );
  • trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php

    r51367 r51368  
    510510        $request->set_param( 'per_page', self::$per_page );
    511511        $response = rest_get_server()->dispatch( $request );
    512         $this->assertCount( $total_posts,  $response->get_data() );
     512        $this->assertCount( $total_posts, $response->get_data() );
    513513
    514514        $request = new WP_REST_Request( 'GET', '/wp/v2/posts' );
Note: See TracChangeset for help on using the changeset viewer.