protected function MigrateFileTest::getFileMigrationInfo in Drupal 8
Same name and namespace in other branches
- 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::getFileMigrationInfo()
Returns information about the file to be migrated.
Return value
array Array with keys 'path', 'size', 'base_path', and 'plugin_id'.
Overrides FileMigrationSetupTrait::getFileMigrationInfo
File
- core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFileTest.php, line 33
Class
- MigrateFileTest
- Migrates all files in the file_managed table.
Namespace
Drupal\Tests\file\Kernel\Migrate\d7Code
protected function getFileMigrationInfo() {
return [
'path' => 'public://sites/default/files/cube.jpeg',
'size' => '3620',
'base_path' => 'public://',
'plugin_id' => 'd7_file',
];
}