function ExtensionInstallCommandTest::testCannotMixModulesAndThemes
Tests that modules and themes cannot be installed in the same invocation.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Extension/ Command/ ExtensionInstallCommandTest.php, line 183
Class
- ExtensionInstallCommandTest
- Tests the 'ex:install' 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 install modules', $tester->getDisplay());
$this->assertFalse($this->moduleInstalled('console_test'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.