protected function TokenReplaceKernelTestBase::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTestBase::setUp()
- 9 core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTestBase::setUp()
Overrides EntityKernelTestBase::setUp
1 method overrides TokenReplaceKernelTestBase::setUp()
- 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\TokenCode
protected function setUp() : void {
parent::setUp();
// Install default system configuration.
$this
->installConfig([
'system',
]);
$this->interfaceLanguage = \Drupal::languageManager()
->getCurrentLanguage();
$this->tokenService = \Drupal::token();
}