function RouterTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Routing/RouterTest.php \Drupal\KernelTests\Core\Routing\RouterTest::setUp()

File

core/tests/Drupal/KernelTests/Core/Routing/RouterTest.php, line 38

Class

RouterTest
Tests the router.

Namespace

Drupal\KernelTests\Core\Routing

Code

protected function setUp() : void {
  parent::setUp();
  $this->router = $this->container
    ->get('router.no_access_checks');
}

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