function ExtensionInstallCommandTest::moduleInstalled
Whether the given module is installed, read fresh from active config.
6 calls to ExtensionInstallCommandTest::moduleInstalled()
- ExtensionInstallCommandTest::testCannotMixModulesAndThemes in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php - Tests that modules and themes cannot be installed in the same invocation.
- ExtensionInstallCommandTest::testDeclinedPromptAborts in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php - Tests that declining the prompt throws a UserAbortException.
- ExtensionInstallCommandTest::testDryRunInstallsNothing in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php - Tests that --dry-run lists the operations but installs nothing.
- ExtensionInstallCommandTest::testInstallWithConfirmedDependency in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php - Tests confirming the prompt installs the module and its dependency.
- ExtensionInstallCommandTest::testInstallWithoutDependencies in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php - Tests installing a module without additional dependencies.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php, line 46
Class
- ExtensionInstallCommandTest
- Tests the 'ex:install' command.
Namespace
Drupal\KernelTests\Core\Extension\CommandCode
private function moduleInstalled(string $module) : bool {
return $this->container
->get('module_handler')
->moduleExists($module);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.