function PreventDowngradeTest::setDatabaseDumpFiles

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/src/Functional/UpdateSystem/PreventDowngradeTest.php \Drupal\Tests\system\Functional\UpdateSystem\PreventDowngradeTest::setDatabaseDumpFiles()

Set database dump files to be used.

Overrides UpdatePathTestBase::setDatabaseDumpFiles

File

core/modules/system/tests/src/Functional/UpdateSystem/PreventDowngradeTest.php, line 29

Class

PreventDowngradeTest
Tests that a site on 10.4.0 is prevented from downgrading to 11.0.0.

Namespace

Drupal\Tests\system\Functional\UpdateSystem

Code

protected function setDatabaseDumpFiles() : void {
  $this->databaseDumpFiles[] = __DIR__ . '/../../../../tests/fixtures/update/drupal-10.3.0.filled.standard.php.gz';
  $this->databaseDumpFiles[] = __DIR__ . '/../../../../tests/fixtures/update/uninstall-history.php';
}

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