You are here

protected function MigrateUserPictureFileTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/Migrate/d6/MigrateUserPictureFileTest.php \Drupal\user\Tests\Migrate\d6\MigrateUserPictureFileTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/user/src/Tests/Migrate/d6/MigrateUserPictureFileTest.php, line 24
Contains \Drupal\user\Tests\Migrate\d6\MigrateUserPictureFileTest.

Class

MigrateUserPictureFileTest
User pictures migration.

Namespace

Drupal\user\Tests\Migrate\d6

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('file');

  /** @var \Drupal\migrate\Entity\MigrationInterface $migration */
  $migration = Migration::load('d6_user_picture_file');
  $source = $migration
    ->get('source');
  $source['site_path'] = 'core/modules/simpletest';
  $migration
    ->set('source', $source);
  $this
    ->executeMigration($migration);
}