You are here

protected function FunctionsTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php \Drupal\Tests\system\Kernel\Theme\FunctionsTest::setUp()
  2. 10 core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php \Drupal\Tests\system\Kernel\Theme\FunctionsTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Theme/FunctionsTest.php, line 30

Class

FunctionsTest
Tests for common theme functions.

Namespace

Drupal\Tests\system\Kernel\Theme

Code

protected function setUp() : void {
  parent::setUp();

  // Enable the Classy theme.
  $this->container
    ->get('theme_installer')
    ->install([
    'classy',
  ]);
  $this
    ->config('system.theme')
    ->set('default', 'classy')
    ->save();
}