public function CckFileTest::testConfigurableFileMigration in Drupal 8
Tests configurability of file migration name.
@covers ::__construct @expectedDeprecation CckFile is deprecated in Drupal 8.3.x and will be be removed before Drupal 9.0.x. Use \Drupal\file\Plugin\migrate\process\d6\FieldFile instead.
File
- core/
modules/ file/ tests/ src/ Kernel/ Migrate/ process/ d6/ CckFileTest.php, line 25
Class
- CckFileTest
- Cck file field migration.
Namespace
Drupal\Tests\file\Kernel\Migrate\process\d6Code
public function testConfigurableFileMigration() {
$migration = Migration::create($this->container, [], 'custom_migration', []);
$cck_file_migration = CckFile::create($this->container, [
'migration' => 'custom_file',
], 'custom_file', [], $migration);
$config = $this
->readAttribute($cck_file_migration, 'configuration');
$this
->assertEquals($config['migration'], 'custom_file');
}