protected function MigrateNodeCompleteTest::getFileMigrationInfo in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeCompleteTest::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/ node/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeCompleteTest.php, line 89
Class
- MigrateNodeCompleteTest
- Test class for a complete node migration for Drupal 7.
Namespace
Drupal\Tests\node\Kernel\Migrate\d7Code
protected function getFileMigrationInfo() {
return [
'path' => 'public://sites/default/files/cube.jpeg',
'size' => '3620',
'base_path' => 'public://',
'plugin_id' => 'd7_file',
];
}