function ExtensionUninstallCommandTest::testCannotMixModulesAndThemes
Tests that modules and themes cannot be uninstalled in the same invocation.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionUninstallCommandTest.php, line 226
Class
- ExtensionUninstallCommandTest
- Tests the 'ex:uninstall' command.
Namespace
Drupal\KernelTests\Core\Extension\CommandCode
public function testCannotMixModulesAndThemes() : void {
$tester = $this->commandTester();
$code = $tester->execute([
'extensions' => 'console_test,test_subtheme',
]);
$this->assertEquals(Command::FAILURE, $code);
$this->assertStringContainsString('Cannot uninstall modules', $tester->getDisplay());
$this->assertTrue($this->moduleInstalled('console_test'));
$this->assertTrue($this->themeInstalled('test_subtheme'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.