function ExtensionUninstallCommandTest::themeInstalled
Whether the given theme is installed.
3 calls to ExtensionUninstallCommandTest::themeInstalled()
- ExtensionUninstallCommandTest::testCannotMixModulesAndThemes in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests that modules and themes cannot be uninstalled in the same invocation.
- ExtensionUninstallCommandTest::testDefaultThemeFails in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests that the default theme cannot be uninstalled.
- ExtensionUninstallCommandTest::testThemeUninstall in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests uninstalling a base theme and its installed sub-theme.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php, line 66
Class
- ExtensionUninstallCommandTest
- Tests the 'ex:uninstall' command.
Namespace
Drupal\KernelTests\Core\Extension\CommandCode
private function themeInstalled(string $theme) : bool {
return array_key_exists($theme, $this->container
->get('theme_handler')
->listInfo());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.