protected function MigrateFileTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/file/src/Tests/Migrate/d6/MigrateFileTest.php \Drupal\file\Tests\Migrate\d6\MigrateFileTest::setUp()
- 8 core/modules/file/src/Tests/Migrate/d7/MigrateFileTest.php \Drupal\file\Tests\Migrate\d7\MigrateFileTest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/file/src/Tests/Migrate/d6/MigrateFileTest.php \Drupal\file\Tests\Migrate\d6\MigrateFileTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides MigrateDrupal6TestBase::setUp
File
- core/
modules/ file/ src/ Tests/ Migrate/ d6/ MigrateFileTest.php, line 36 - Contains \Drupal\file\Tests\Migrate\d6\MigrateFileTest.
Class
- MigrateFileTest
- file migration.
Namespace
Drupal\file\Tests\Migrate\d6Code
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('file');
$this
->installConfig([
'file',
]);
/** @var \Drupal\migrate\Entity\MigrationInterface $migration */
$migration = Migration::load('d6_file');
$source = $migration
->get('source');
$source['site_path'] = 'core/modules/simpletest';
$migration
->set('source', $source);
$this
->executeMigration($migration);
}