mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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
This commit is contained in:
@@ -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' ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user