You are here

protected function TokenReplaceKernelTest::setUp in Drupal 10

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

Overrides TokenReplaceKernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php, line 22

Class

TokenReplaceKernelTest
Generates text using placeholders for dummy content to check token replacement.

Namespace

Drupal\Tests\system\Kernel\Token

Code

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

  // Set the site name to something other than an empty string.
  $this
    ->config('system.site')
    ->set('name', 'Drupal')
    ->save();
}