function FunctionalTestSetupTrait::doInstall

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php \Drupal\Core\Test\FunctionalTestSetupTrait::doInstall()

Execute the non-interactive installer.

See also

install_drupal()

File

core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php, line 293

Class

FunctionalTestSetupTrait
Defines a trait for shared functional test setup functionality.

Namespace

Drupal\Core\Test

Code

protected function doInstall() {
  require_once DRUPAL_ROOT . '/core/includes/install.core.inc';
  $parameters = $this->installParameters();
  // Simulate a real install which does not start with the any connections set
  // in \Drupal\Core\Database\Database::$connections.
  Database::removeConnection('default');
  install_drupal($this->classLoader, $parameters);
}

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