function ThemeSettingsTest::testNoDefaultConfig
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php \Drupal\KernelTests\Core\Theme\ThemeSettingsTest::testNoDefaultConfig()
- 10 core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php \Drupal\KernelTests\Core\Theme\ThemeSettingsTest::testNoDefaultConfig()
- 11.x core/tests/Drupal/KernelTests/Core/Theme/ThemeSettingsTest.php \Drupal\KernelTests\Core\Theme\ThemeSettingsTest::testNoDefaultConfig()
Tests that the $theme.settings default config file is optional.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeSettingsTest.php, line 58
Class
- ThemeSettingsTest
- Tests theme settings functionality.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function testNoDefaultConfig() {
$name = 'stark';
$path = $this->availableThemes[$name]
->getPath();
$this->assertFileDoesNotExist("{$path}/" . InstallStorage::CONFIG_INSTALL_DIRECTORY . "/{$name}.settings.yml");
$this->container
->get('theme_installer')
->install([
$name,
]);
$this->assertNotNull(theme_get_setting('features.favicon', $name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.