function MigrateFileTest::setUp
Same name in this branch
- 11.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::setUp()
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest::setUp()
- 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::setUp()
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest::setUp()
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::setUp()
- 10 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest::setUp()
- 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::setUp()
Overrides MigrateDrupal6TestBase::setUp
File
-
core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d6/ MigrateFileTest.php, line 33
Class
- MigrateFileTest
- Test file migration.
Namespace
Drupal\Tests\file\Kernel\Migrate\d6Code
protected function setUp() : void {
parent::setUp();
// Remove the file_directory_path to test site_path setting.
// @see \Drupal\Tests\file\Kernel\Migrate\d6\FileMigrationTestTrait::prepareMigration()
Database::getConnection('default', 'migrate')->delete('variable')
->condition('name', 'file_directory_path')
->execute();
$this->setUpMigratedFiles();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.