function RouteProviderTest::testKernelTestLazyRouteProvider

Performs basic smoke test on the lazy route provider used in kernel tests.

File

core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php, line 780

Class

RouteProviderTest
Confirm that the default route provider is working correctly.

Namespace

Drupal\KernelTests\Core\Routing

Code

public function testKernelTestLazyRouteProvider() : void {
  $routes = \iterator_to_array(\Drupal::service('router.route_provider')->getAllRoutes());
  self::assertArrayHasKey('language.negotiation_url', $routes);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.