diff --git a/tests/phpunit/tests/rest-api/rest-posts-controller.php b/tests/phpunit/tests/rest-api/rest-posts-controller.php index d8a383cb54563..85a574ab07127 100644 --- a/tests/phpunit/tests/rest-api/rest-posts-controller.php +++ b/tests/phpunit/tests/rest-api/rest-posts-controller.php @@ -790,8 +790,8 @@ public function test_get_items_exact_search( $search_term, $exact_search, $expec ) ); - $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); - $request['search'] = $search_term; + $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); + $request['search'] = $search_term; $request['exact_search'] = $exact_search; $response = rest_get_server()->dispatch( $request ); $this->assertCount( $expected, $response->get_data() );