function ThemeLegacyTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Theme/ThemeLegacyTest.php, line 32

Class

ThemeLegacyTest
Tests legacy theme functions.

Namespace

Drupal\Tests\system\Functional\Theme

Code

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

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