You are here

protected function UrlTest::setUp in Token 8

Same name in this branch
  1. 8 tests/src/Functional/UrlTest.php \Drupal\Tests\token\Functional\UrlTest::setUp()
  2. 8 tests/src/Kernel/UrlTest.php \Drupal\Tests\token\Kernel\UrlTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/UrlTest.php, line 39

Class

UrlTest
Test generic url token replacements.

Namespace

Drupal\Tests\token\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->token = $this->container
    ->get('token');
  $this->requestStack = $this->container
    ->get('request_stack');
  $this->currentRouteMatch = $this->container
    ->get('current_route_match');
}