protected function ThemeSettingsTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Theme/ThemeSettingsTest.php \Drupal\system\Tests\Theme\ThemeSettingsTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Theme/ ThemeSettingsTest.php, line 35 - Contains \Drupal\system\Tests\Theme\ThemeSettingsTest.
Class
- ThemeSettingsTest
- Tests theme settings functionality.
Namespace
Drupal\system\Tests\ThemeCode
protected function setUp() {
parent::setUp();
// Theme settings rely on System module's system.theme.global configuration.
$this
->installConfig(array(
'system',
));
if (!isset($this->availableThemes)) {
$discovery = new ExtensionDiscovery(\Drupal::root());
$this->availableThemes = $discovery
->scan('theme');
}
}