function TestSiteInstallCommand::installDrupal

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php \Drupal\TestSite\Commands\TestSiteInstallCommand::installDrupal()
  2. 10 core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php \Drupal\TestSite\Commands\TestSiteInstallCommand::installDrupal()
  3. 8.9.x core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php \Drupal\TestSite\Commands\TestSiteInstallCommand::installDrupal()

Installs Drupal into the test site.

File

core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php, line 231

Class

TestSiteInstallCommand
Command to create a test Drupal site.

Namespace

Drupal\TestSite\Commands

Code

protected function installDrupal() {
  $this->initUserSession();
  $this->prepareSettings();
  $this->doInstall();
  $this->initSettings();
  $container = $this->initKernel(\Drupal::request());
  $this->initConfig($container);
}

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