protected function UpdatePathTest::setDatabaseDumpFiles in Consumers 8
Set database dump files to be used.
Overrides UpdatePathTestBase::setDatabaseDumpFiles
File
- tests/
src/ Functional/ UpdatePathTest.php, line 15
Class
- UpdatePathTest
- @group consumers
Namespace
Drupal\Tests\consumers\FunctionalCode
protected function setDatabaseDumpFiles() {
// This conditional allows tests to pass both before and after 8.8.x. The
// 8.4.0 fixtures were removed in 8.8.x.
// https://www.drupal.org/project/consumers/issues/3115996
// @todo: Remove this conditional after 8.7.x is no longer supported.
if (file_exists($this
->getDrupalRoot() . '/core/modules/system/tests/fixtures/update/drupal-8.8.0.bare.standard.php.gz')) {
$this->databaseDumpFiles = [
$this
->getDrupalRoot() . '/core/modules/system/tests/fixtures/update/drupal-8.8.0.bare.standard.php.gz',
__DIR__ . '/../../drupal-8.4.0-consumers_installed.php',
];
}
else {
$this->databaseDumpFiles = [
// @todo: Remove this fixture after 8.7 is no longer supported.
__DIR__ . '/../../drupal-8.4.0.bare.standard.php.gz',
__DIR__ . '/../../drupal-8.4.0-consumers_installed.php',
];
}
}