function ExtensionInstallCommandTest::moduleInstalled
Same name and namespace in other branches
- 11.x core/modules/system/tests/src/Kernel/Command/ExtensionInstallCommandTest.php \Drupal\Tests\system\Kernel\Command\ExtensionInstallCommandTest::moduleInstalled()
Whether the given module is installed, read fresh from active config.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Command/ ExtensionInstallCommandTest.php, line 46
Class
- ExtensionInstallCommandTest
- Tests the 'ex:install' command.
Namespace
Drupal\Tests\system\Kernel\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.