diff --git a/core/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php b/core/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php index 6eec8fdf92621ab940e366b6c86d78601b0ad883..4fff4c66074ec55c1170a8a468d108131ecd0183 100644 --- a/core/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php +++ b/core/tests/Drupal/Tests/Core/Routing/RequestFormatRouteFilterTest.php @@ -35,9 +35,9 @@ public function testFilter(RouteCollection $collection, $request_format, array $ public function filterProvider() { $route_without_format = new Route('/test'); - $route_with_format = $route = new Route('/test'); + $route_with_format = new Route('/test'); $route_with_format->setRequirement('_format', 'json'); - $route_with_multiple_formats = $route = new Route('/test'); + $route_with_multiple_formats = new Route('/test'); $route_with_multiple_formats->setRequirement('_format', 'json|xml'); $collection = new RouteCollection(); @@ -71,7 +71,7 @@ public function testNoRouteFound() { \Drupal::setContainer($container); $collection = new RouteCollection(); - $route_with_format = $route = new Route('/test'); + $route_with_format = new Route('/test'); $route_with_format->setRequirement('_format', 'json'); $collection->add('test_0', $route_with_format); $collection->add('test_1', clone $route_with_format); @@ -102,7 +102,7 @@ public function testNoRouteFoundWhenNoRequestFormatAndSingleRouteWithMultipleFor \Drupal::setContainer($container); $collection = new RouteCollection(); - $route_with_format = $route = new Route('/test'); + $route_with_format = new Route('/test'); $route_with_format->setRequirement('_format', 'json|xml'); $collection->add('sole_route_multiple_formats', $route_with_format);