Skip to content
Snippets Groups Projects
Unverified Commit 03e067bc authored by Alex Pott's avatar Alex Pott
Browse files

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
parent 9b4c2f03
Branches
Tags
8 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards,!16Draft: Resolve #2081585 "History storage",!13Resolve #2903456
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment