function ThemeSettingsTest::setUp
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php \Drupal\KernelTests\Core\Theme\ThemeSettingsTest::setUp()
- 8.9.x core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php \Drupal\KernelTests\Core\Theme\ThemeSettingsTest::setUp()
- 11.x core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php \Drupal\KernelTests\Core\Theme\ThemeSettingsTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeSettingsTest.php, line 33
Class
- ThemeSettingsTest
- Tests theme settings functionality.
Namespace
Drupal\KernelTests\Core\ThemeCode
protected function setUp() : void {
parent::setUp();
// Theme settings rely on System module's system.theme.global configuration.
$this->installConfig([
'system',
]);
if (!isset($this->availableThemes)) {
$discovery = new ExtensionDiscovery($this->root);
$this->availableThemes = $discovery->scan('theme');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.