Example #1
0
 /**
  * Tests configurability of file migration name.
  *
  * @covers ::__construct
  */
 public function testConfigurableFileMigration()
 {
     $migration = Migration::create($this->container, [], 'custom_migration', []);
     $cck_file_migration = CckFile::create($this->container, ['migration' => 'custom_file'], 'custom_file', [], $migration);
     $migration_plugin = $this->readAttribute($cck_file_migration, 'migrationPlugin');
     $config = $this->readAttribute($migration_plugin, 'configuration');
     $this->assertEquals($config['migration'], 'custom_file');
 }
 /**
  * {@inheritdoc}
  */
 public function createStubMigration(array $definition)
 {
     $id = isset($definition['id']) ? $definition['id'] : uniqid();
     return Migration::create(\Drupal::getContainer(), [], $id, $definition);
 }