function TokenReplaceKernelTestBase::setUp
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTestBase::setUp()
- 8.9.x core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTestBase::setUp()
- 10 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 36
Class
- TokenReplaceKernelTestBase
- Base class for token replacement tests.
Namespace
Drupal\Tests\system\Kernel\TokenCode
protected function setUp() : void {
parent::setUp();
// Install default system configuration.
$this->installConfig([
'system',
]);
$this->interfaceLanguage = \Drupal::languageManager()->getCurrentLanguage();
$this->tokenService = \Drupal::token();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.