protected function UrlTest::setUp in Token 8
Same name in this branch
- 8 tests/src/Functional/UrlTest.php \Drupal\Tests\token\Functional\UrlTest::setUp()
- 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\KernelCode
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');
}