core/modules/rest/tests/src/Kernel/RequestHandlerTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php index 8420d83..39820d8 100644 --- a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php +++ b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php @@ -81,6 +81,7 @@ public function testBaseHandler() { $this->assertEquals($response, $handler_response); // We will call the patch method this time. + $route_match = new RouteMatch('test', new Route('/rest/test', ['_rest_resource_config' => 'restplugin'], ['_content_type_format' => 'json'])); $request->setMethod('PATCH'); $response = new ResourceResponse([]); $resource->patch(NULL, $request)