You are here

protected function TokenReplaceKernelTestBase::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTestBase::setUp()

Overrides EntityKernelTestBase::setUp

2 calls to TokenReplaceKernelTestBase::setUp()
NodeTokenReplaceTest::setUp in core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
TokenReplaceKernelTest::setUp in core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php
2 methods override TokenReplaceKernelTestBase::setUp()
NodeTokenReplaceTest::setUp in core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
TokenReplaceKernelTest::setUp in core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php

File

core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php, line 33

Class

TokenReplaceKernelTestBase
Base class for token replacement tests.

Namespace

Drupal\Tests\system\Kernel\Token

Code

protected function setUp() {
  parent::setUp();

  // Install default system configuration.
  $this
    ->installConfig([
    'system',
  ]);
  \Drupal::service('router.builder')
    ->rebuild();
  $this->interfaceLanguage = \Drupal::languageManager()
    ->getCurrentLanguage();
  $this->tokenService = \Drupal::token();
}