function ExtensionInstallCommandTest::testInstallWithoutDependencies

Tests installing a module without additional dependencies.

File

core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionInstallCommandTest.php, line 133

Class

ExtensionInstallCommandTest
Tests the 'ex:install' command.

Namespace

Drupal\KernelTests\Core\Extension\Command

Code

public function testInstallWithoutDependencies() : void {
  $tester = $this->commandTester();
  $code = $tester->execute([
    'extensions' => 'autowire_test',
  ]);
  $this->assertEquals(Command::SUCCESS, $code);
  $this->assertTrue($this->moduleInstalled('autowire_test'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.