function ExtensionUninstallCommandTest::commandTester
Builds a command tester for the 'ex:uninstall' command.
11 calls to ExtensionUninstallCommandTest::commandTester()
- ExtensionUninstallCommandTest::testAlreadyUninstalled in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests that an already uninstalled module is a no-op.
- 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::testDeclinedPromptAborts in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests that declining the prompt throws a UserAbortException.
- ExtensionUninstallCommandTest::testDefaultThemeFails in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests that the default theme cannot be uninstalled.
- ExtensionUninstallCommandTest::testDryRunUninstallsNothing in core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php - Tests that --dry-run lists the operations but uninstalls nothing.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php, line 45
Class
- ExtensionUninstallCommandTest
- Tests the 'ex:uninstall' command.
Namespace
Drupal\KernelTests\Core\Extension\CommandCode
private function commandTester() : CommandTester {
$command = new ExtensionUninstallCommand($this->container
->get('module_installer'), $this->container
->get('theme_installer'), $this->container
->get('extension.list.module'), $this->container
->get('extension.list.theme'), $this->container
->get('messenger'));
return new CommandTester($command);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.