protected function ThemeSettingsTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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 30
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');
}
}