/**
* Execute the non-interactive installer.
*
* @see install_drupal()
*/
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);
} /**
* Initialize settings created during install.
*/
protected function initSettings() { Settings::
initialize(DRUPAL_ROOT,
$this->siteDirectory,
$this->classLoader
);
// After writing settings.php, the installer removes write permissions
// from the site directory. To allow drupal_generate_test_ua() to write
// a file containing the private key for drupal_valid_test_ua(), the site