protected function UpdateTest::setDatabaseDumpFiles in Entity Legal 4.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/UpdateTest.php \Drupal\Tests\entity_legal\Functional\UpdateTest::setDatabaseDumpFiles()
- 3.0.x tests/src/Functional/UpdateTest.php \Drupal\Tests\entity_legal\Functional\UpdateTest::setDatabaseDumpFiles()
Set database dump files to be used.
Overrides UpdatePathTestBase::setDatabaseDumpFiles
File
- tests/
src/ Functional/ UpdateTest.php, line 19
Class
- UpdateTest
- Tests update scripts.
Namespace
Drupal\Tests\entity_legal\FunctionalCode
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
DRUPAL_ROOT . '/core/modules/system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz',
// Install the 'entity_legal' module.
__DIR__ . '/../../fixtures/update/install_entity_legal.php',
// Apply a database patch that contains two legal documents.
__DIR__ . '/../../fixtures/update/legal_documents.php',
// Apply a database patch that adds legal document versions:
// - Versions v1, v2, v3 (published) in legal_notice.
// - Versions v7, v8 (published) in privacy_policy.
__DIR__ . '/../../fixtures/update/update_8200.php',
];
}