function MigrateFileTest::setUp

Same name in this branch
  1. 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
  1. 9 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest::setUp()
  2. 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::setUp()
  3. 8.9.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest::setUp()
  4. 8.9.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::setUp()
  5. 10 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateFileTest::setUp()
  6. 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\d6

Code

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.