function DevelReinstallCommandTest::runCommand
Runs devel:reinstall for a comma-separated list of modules.
3 calls to DevelReinstallCommandTest::runCommand()
- DevelReinstallCommandTest::testNotInstalled in tests/
src/ Kernel/ DevelReinstallCommandTest.php - A module that is not installed is an error.
- DevelReinstallCommandTest::testReinstall in tests/
src/ Kernel/ DevelReinstallCommandTest.php - Modules are uninstalled and installed again.
- DevelReinstallCommandTest::testRequired in tests/
src/ Kernel/ DevelReinstallCommandTest.php - A module that cannot be uninstalled is an error.
File
-
tests/
src/ Kernel/ DevelReinstallCommandTest.php, line 70
Class
- DevelReinstallCommandTest
- Tests the devel:reinstall command.
Namespace
Drupal\Tests\devel\KernelCode
protected function runCommand(string $modules) : CommandTester {
$command = new DevelReinstallCommand(\Drupal::service('module_installer'), \Drupal::moduleHandler());
$tester = new CommandTester(new Command(NULL, $command));
$tester->execute([
'modules' => $modules,
], [
'interactive' => FALSE,
]);
return $tester;
}