function ThemeTokenTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php \Drupal\Tests\system\Functional\Theme\ThemeTokenTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php \Drupal\Tests\system\Functional\Theme\ThemeTokenTest::setUp()
  3. 11.x core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php \Drupal\Tests\system\Functional\Theme\ThemeTokenTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Theme/ThemeTokenTest.php, line 31

Class

ThemeTokenTest
Tests the generation of 'theme_token' key in Drupal settings.

Namespace

Drupal\Tests\system\Functional\Theme

Code

protected function setUp() : void {
    parent::setUp();
    $account = $this->drupalCreateUser([
        'administer blocks',
        'view the administration theme',
    ]);
    $this->drupalLogin($account);
}

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