function ExperimentalThemeTest::setUp

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

Overrides BrowserTestBase::setUp

File

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

Class

ExperimentalThemeTest
Tests the installation of experimental themes.

Namespace

Drupal\Tests\system\Functional\Theme

Code

protected function setUp() : void {
    parent::setUp();
    $this->adminUser = $this->drupalCreateUser([
        'access administration pages',
        'administer themes',
    ]);
    $this->drupalLogin($this->adminUser);
}

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