function BaseThemeMissingTest::setUp
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.php \Drupal\KernelTests\Core\Theme\BaseThemeMissingTest::setUp()
- 10 core/tests/Drupal/KernelTests/Core/Theme/BaseThemeMissingTest.php \Drupal\KernelTests\Core\Theme\BaseThemeMissingTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Theme/ BaseThemeMissingTest.php, line 33
Class
- BaseThemeMissingTest
- Tests the behavior of a theme when base_theme info key is missing.
Namespace
Drupal\KernelTests\Core\ThemeCode
protected function setUp() : void {
parent::setUp();
// Add a directory to extension discovery to find the theme with a missing
// base class.
// @see \Drupal\Core\Extension\ExtensionDiscovery::scan()
$settings = Settings::getAll();
$settings['test_parent_site'] = 'core/tests/fixtures/test_missing_base_theme';
new Settings($settings);
$this->themeInstaller = $this->container
->get('theme_installer');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.