diff --git a/core/modules/rest/src/Tests/UpdateTest.php b/core/modules/rest/src/Tests/UpdateTest.php index 570444e..fbfb951 100644 --- a/core/modules/rest/src/Tests/UpdateTest.php +++ b/core/modules/rest/src/Tests/UpdateTest.php @@ -61,7 +61,6 @@ public function testPatchUpdate() { $this->httpRequest($entity->toUrl(), 'PATCH', $serialized, 'none'); $this->assertResponse(Response::HTTP_UNSUPPORTED_MEDIA_TYPE); $this->assertRaw('No route found that matches the Content-Type header.'); - return; // Update the entity over the REST API. $this->httpRequest($entity->urlInfo(), 'PATCH', $serialized, $this->defaultMimeType); diff --git a/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php b/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php index ed9fec2..c269734 100644 --- a/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php +++ b/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php @@ -35,7 +35,7 @@ protected function setUp() { } /** - * Tests on a route with a non supported HTTP method. + * Tests on a route with a non-supported HTTP method. */ public function test405() { $request = Request::create('/router_test/test15', 'PATCH'); diff --git a/core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php b/core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php index 3305edc..e55d131 100644 --- a/core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php @@ -90,7 +90,7 @@ public function testFilteredMethods() { $collection = new RouteCollection(); $collection->add('test_route.get', new Route('/test', [], [], [], '', [], ['GET'])); $collection->add('test_route2.get', new Route('/test', [], [], [], '', [], ['PATCH'])); - $collection->add('test_route3.get', new Route('/test', [], [], [], '', [], ['PUSH'])); + $collection->add('test_route3.get', new Route('/test', [], [], [], '', [], ['POST'])); $expected_collection = new RouteCollection(); $expected_collection->add('test_route2.get', new Route('/test', [], [], [], '', [], ['PATCH']));