function UpdatePathTestBase::doInstall

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

Overrides FunctionalTestSetupTrait::doInstall

1 call to UpdatePathTestBase::doInstall()
UpdatePathTestBase::installDrupal in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
Overrides BrowserTestBase::installDrupal() for update testing.

File

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

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 (str_ends_with($file, '.gz')) {
            $file = "compress.zlib://{$file}";
        }
        require $file;
    }
}

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