function TwigNamespaceTest::setUp
Same name in other branches
- 8.9.x core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php \Drupal\Tests\system\Kernel\Theme\TwigNamespaceTest::setUp()
- 10 core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php \Drupal\Tests\system\Kernel\Theme\TwigNamespaceTest::setUp()
- 11.x 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 35
Class
- TwigNamespaceTest
- Tests Twig namespaces.
Namespace
Drupal\Tests\system\Kernel\ThemeCode
protected function setUp() : void {
parent::setUp();
\Drupal::service('theme_installer')->install([
'test_theme',
'olivero',
]);
$this->twig = \Drupal::service('twig');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.