function ColorTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/modules/color/tests/src/Functional/ColorTest.php \Drupal\Tests\color\Functional\ColorTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/color/tests/src/Functional/ColorTest.php, line 37

Class

ColorTest
Modify theme colors and make sure the changes are reflected on the frontend.

Namespace

Drupal\Tests\color\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create user.
    $this->bigUser = $this->drupalCreateUser([
        'administer themes',
    ]);
    // Set 'color_test_theme' as the default theme.
    $this->config('system.theme')
        ->set('default', 'color_test_theme')
        ->save();
}

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