Loading core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php +1 −1 Changes for core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -288,7 +288,7 @@ public function testDuplicateRoutePaths($path, $number, $expected_route_name = N $routes = $provider->getRouteCollectionForRequest($request); $this->assertCount($number, $routes, 'The correct number of routes was found.'); if ($expected_route_name) { $route_name = key(current($routes)); $route_name = $routes->getIterator()->key(); $this->assertEquals($expected_route_name, $route_name, 'The expected route name was found.'); } } Loading Loading
core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php +1 −1 Changes for core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -288,7 +288,7 @@ public function testDuplicateRoutePaths($path, $number, $expected_route_name = N $routes = $provider->getRouteCollectionForRequest($request); $this->assertCount($number, $routes, 'The correct number of routes was found.'); if ($expected_route_name) { $route_name = key(current($routes)); $route_name = $routes->getIterator()->key(); $this->assertEquals($expected_route_name, $route_name, 'The expected route name was found.'); } } Loading