public function ThemeInstallerTest::testEmpty in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php \Drupal\KernelTests\Core\Theme\ThemeInstallerTest::testEmpty()
- 10 core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php \Drupal\KernelTests\Core\Theme\ThemeInstallerTest::testEmpty()
Verifies that no themes are installed by default.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ThemeInstallerTest.php, line 45
Class
- ThemeInstallerTest
- Tests installing and uninstalling of themes.
Namespace
Drupal\KernelTests\Core\ThemeCode
public function testEmpty() {
$this
->assertEmpty($this
->extensionConfig()
->get('theme'));
$this
->assertEmpty(array_keys($this
->themeHandler()
->listInfo()));
$this
->assertEmpty(array_keys(\Drupal::service('theme_handler')
->listInfo()));
// Rebuilding available themes should always yield results though.
$this
->assertNotEmpty($this
->themeHandler()
->rebuildThemeData()['stark'], 'ThemeHandler::rebuildThemeData() yields all available themes.');
// theme_get_setting() should return global default theme settings.
$this
->assertIdentical(theme_get_setting('features.favicon'), TRUE);
}