You are here

protected function TwigNamespaceTest::setUp in Drupal 9

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

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php, line 32

Class

TwigNamespaceTest
Tests Twig namespaces.

Namespace

Drupal\Tests\system\Kernel\Theme

Code

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