function TwigRegistryLoaderTest::setUp

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::setUp()
  2. 8.9.x core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::setUp()
  3. 10 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 35

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');
}

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