function ExtensionInstallCommandTest::testInstallWithoutDependencies

Same name in this branch
  1. 11.x core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionInstallCommandTest.php \Drupal\KernelTests\Core\Extension\Command\ExtensionInstallCommandTest::testInstallWithoutDependencies()
Same name and namespace in other branches
  1. main core/modules/system/tests/src/Kernel/Command/ExtensionInstallCommandTest.php \Drupal\Tests\system\Kernel\Command\ExtensionInstallCommandTest::testInstallWithoutDependencies()
  2. main core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionInstallCommandTest.php \Drupal\KernelTests\Core\Extension\Command\ExtensionInstallCommandTest::testInstallWithoutDependencies()

Tests installing a module without additional dependencies.

File

core/modules/system/tests/src/Kernel/Command/ExtensionInstallCommandTest.php, line 133

Class

ExtensionInstallCommandTest
Tests the 'ex:install' command.

Namespace

Drupal\Tests\system\Kernel\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.