function TokenReplaceKernelTest::setUp

Same name in other branches
  1. 8.9.x core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTest::setUp()
  2. 10 core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTest.php \Drupal\Tests\system\Kernel\Token\TokenReplaceKernelTest::setUp()
  3. 11.x 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 21

Class

TokenReplaceKernelTest
Tests 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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.