Unverified Commit 5679afdc authored by alexpott's avatar alexpott

Issue #3158276 by Hardik_Patel_12, kiamlaluno, paulocs: Remove local unused...

Issue #3158276 by Hardik_Patel_12, kiamlaluno, paulocs: Remove local unused variables from RequestFormatRouteFilterTest.php file

(cherry picked from commit 87713ec20ee7e000687fd890f00781a8145aa2f9)
parent d0521786
...@@ -35,9 +35,9 @@ public function testFilter(RouteCollection $collection, $request_format, array $ ...@@ -35,9 +35,9 @@ public function testFilter(RouteCollection $collection, $request_format, array $
public function filterProvider() { public function filterProvider() {
$route_without_format = new Route('/test'); $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_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'); $route_with_multiple_formats->setRequirement('_format', 'json|xml');
$collection = new RouteCollection(); $collection = new RouteCollection();
...@@ -71,7 +71,7 @@ public function testNoRouteFound() { ...@@ -71,7 +71,7 @@ public function testNoRouteFound() {
\Drupal::setContainer($container); \Drupal::setContainer($container);
$collection = new RouteCollection(); $collection = new RouteCollection();
$route_with_format = $route = new Route('/test'); $route_with_format = new Route('/test');
$route_with_format->setRequirement('_format', 'json'); $route_with_format->setRequirement('_format', 'json');
$collection->add('test_0', $route_with_format); $collection->add('test_0', $route_with_format);
$collection->add('test_1', clone $route_with_format); $collection->add('test_1', clone $route_with_format);
...@@ -102,7 +102,7 @@ public function testNoRouteFoundWhenNoRequestFormatAndSingleRouteWithMultipleFor ...@@ -102,7 +102,7 @@ public function testNoRouteFoundWhenNoRequestFormatAndSingleRouteWithMultipleFor
\Drupal::setContainer($container); \Drupal::setContainer($container);
$collection = new RouteCollection(); $collection = new RouteCollection();
$route_with_format = $route = new Route('/test'); $route_with_format = new Route('/test');
$route_with_format->setRequirement('_format', 'json|xml'); $route_with_format->setRequirement('_format', 'json|xml');
$collection->add('sole_route_multiple_formats', $route_with_format); $collection->add('sole_route_multiple_formats', $route_with_format);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment