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

merge-requests/2/head
Alex Pott 2020-07-30 09:41:46 +01:00
parent 9b4c2f03ba
commit 03e067bc15
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 4 additions and 4 deletions

View File

@ -35,9 +35,9 @@ class RequestFormatRouteFilterTest extends UnitTestCase {
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 @@ class RequestFormatRouteFilterTest extends UnitTestCase {
\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 @@ class RequestFormatRouteFilterTest extends UnitTestCase {
\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);