You are here

protected function UpdatePathTestBase::doInstall in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::doInstall()
  2. 10 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::doInstall()

Execute the non-interactive installer.

Overrides FunctionalTestSetupTrait::doInstall

See also

install_drupal()

1 call to UpdatePathTestBase::doInstall()
UpdatePathTestBase::installDrupal in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
Installs Drupal into the Simpletest site.

File

core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php, line 223

Class

UpdatePathTestBase
Provides a base class for writing an update test.

Namespace

Drupal\FunctionalTests\Update

Code

protected function doInstall() {
  $this
    ->runDbTasks();

  // Allow classes to set database dump files.
  $this
    ->setDatabaseDumpFiles();

  // Load the database(s).
  foreach ($this->databaseDumpFiles as $file) {
    if (substr($file, -3) == '.gz') {
      $file = "compress.zlib://{$file}";
    }
    require $file;
  }
}