function ExtensionInstallCommandTest::themeInstalled
Whether the given theme is installed.
1 call to ExtensionInstallCommandTest::themeInstalled()
- ExtensionInstallCommandTest::testThemeInstall in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php - Tests installing a theme and its base theme dependency.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php, line 53
Class
- ExtensionInstallCommandTest
- Tests the 'ex:install' 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.