function RouteProviderTest::register

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php \Drupal\KernelTests\Core\Routing\RouteProviderTest::register()

Overrides KernelTestBase::register

File

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

Class

RouteProviderTest
Confirm that the default route provider is working correctly.

Namespace

Drupal\KernelTests\Core\Routing

Code

public function register(ContainerBuilder $container) {
    parent::register($container);
    // Read the incoming path alias for these tests.
    if ($container->hasDefinition('path_alias.path_processor')) {
        $definition = $container->getDefinition('path_alias.path_processor');
        $definition->addTag('path_processor_inbound');
    }
}

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