From 2e561dcf3b957471302df9fd84a49b9de38ccf11 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Thu, 20 Jul 2023 13:32:12 -0500 Subject: [PATCH] Fix php coding standards error --- ...ass-gutenberg-rest-navigation-fallback-controller-test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpunit/class-gutenberg-rest-navigation-fallback-controller-test.php b/phpunit/class-gutenberg-rest-navigation-fallback-controller-test.php index f01fc1986a218..70d84cb716951 100644 --- a/phpunit/class-gutenberg-rest-navigation-fallback-controller-test.php +++ b/phpunit/class-gutenberg-rest-navigation-fallback-controller-test.php @@ -171,7 +171,7 @@ public function test_embedded_navigation_post_contains_required_fields() { // First we'll use the navigation fallback to get a link to the navigation endpoint. $request = new WP_REST_Request( 'GET', '/wp-block-editor/v1/navigation-fallback' ); $response = rest_get_server()->dispatch( $request ); - $links = $response->get_links(); + $links = $response->get_links(); // Extract the navigation endpoint URL from the response. $embedded_navigation_href = $links['self'][0]['href']; @@ -179,7 +179,7 @@ public function test_embedded_navigation_post_contains_required_fields() { $navigation_endpoint = $matches[1]; // Fetch the "linked" navigation post from the endpoint, with the context parameter set to 'embed' to simulate fetching embedded links. - $request = new WP_REST_Request( 'GET', $navigation_endpoint ); + $request = new WP_REST_Request( 'GET', $navigation_endpoint ); $request->set_param( 'context', 'embed' ); $response = rest_get_server()->dispatch( $request ); $data = $response->get_data();