You are here

protected function TwigRegistryLoaderTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

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

Class

TwigRegistryLoaderTest
Tests Twig registry loader.

Namespace

Drupal\Tests\system\Functional\Theme

Code

protected function setUp() : void {
  parent::setUp();
  \Drupal::service('theme_installer')
    ->install([
    'test_theme_twig_registry_loader',
    'test_theme_twig_registry_loader_theme',
    'test_theme_twig_registry_loader_subtheme',
  ]);
  $this->twig = \Drupal::service('twig');
}