You are here

protected function ColorConfigSchemaTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php, line 36

Class

ColorConfigSchemaTest
Ensures the color config schema is correct.

Namespace

Drupal\Tests\color\Functional

Code

protected function setUp() : void {
  parent::setUp();
  \Drupal::service('theme_installer')
    ->install([
    'bartik',
  ]);

  // Create user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer themes',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}