protected function MigrateNodeTest::getFileMigrationInfo in Node Option Premium 8
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
- tests/
src/ Kernel/ Migrate/ MigrateNodeTest.php, line 61
Class
- MigrateNodeTest
- Tests node migration.
Namespace
Drupal\Tests\nopremium\Kernel\Migrate\d7Code
protected function getFileMigrationInfo() {
return [
'path' => 'public://sites/default/files/cube.jpeg',
'size' => '3620',
'base_path' => 'public://',
'plugin_id' => 'd7_file',
];
}