function ExtensionUninstallCommandTest::testAlreadyUninstalled
Tests that an already uninstalled module is a no-op.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php, line 158
Class
- ExtensionUninstallCommandTest
- Tests the 'ex:uninstall' command.
Namespace
Drupal\KernelTests\Core\Extension\CommandCode
public function testAlreadyUninstalled() : void {
$tester = $this->commandTester();
$code = $tester->execute([
'extensions' => 'help',
]);
$this->assertEquals(Command::SUCCESS, $code, $tester->getDisplay());
$this->assertStringContainsString('Nothing to do', $tester->getDisplay());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.