From 9c3319de66863241dcc36ebe58e881c99c2fa400 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 5 Nov 2019 23:17:01 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in [46670]. See #48145. git-svn-id: https://develop.svn.wordpress.org/trunk@46671 602fd350-edb4-49c9-b593-d223f7449a82 --- .../tests/rest-api/rest-posts-controller.php | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/tests/rest-api/rest-posts-controller.php b/tests/phpunit/tests/rest-api/rest-posts-controller.php index 8416fd9e0b..2aca849347 100644 --- a/tests/phpunit/tests/rest-api/rest-posts-controller.php +++ b/tests/phpunit/tests/rest-api/rest-posts-controller.php @@ -330,14 +330,18 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te } public function test_get_items_include_query() { - $id1 = $this->factory->post->create( array( - 'post_status' => 'publish', - 'post_date' => '2001-02-03 04:05:06', - ) ); - $id2 = $this->factory->post->create( array( - 'post_status' => 'publish', - 'post_date' => '2001-02-03 04:05:07', - ) ); + $id1 = $this->factory->post->create( + array( + 'post_status' => 'publish', + 'post_date' => '2001-02-03 04:05:06', + ) + ); + $id2 = $this->factory->post->create( + array( + 'post_status' => 'publish', + 'post_date' => '2001-02-03 04:05:07', + ) + ); $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); @@ -349,7 +353,7 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te $this->assertEquals( $id2, $data[0]['id'] ); $this->assertPostsOrderedBy( '{posts}.post_date DESC' ); - // 'orderby' => 'include' + // 'orderby' => 'include'. $request->set_param( 'orderby', 'include' ); $response = rest_get_server()->dispatch( $request ); $data = $response->get_data();