function MigrateFileTest::getFileMigrationInfo
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::getFileMigrationInfo()
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::getFileMigrationInfo()
- 11.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileTest::getFileMigrationInfo()
Overrides FileMigrationSetupTrait::getFileMigrationInfo
1 call to MigrateFileTest::getFileMigrationInfo()
- MigrateFileGetIdsTest::getFileMigrationInfo in core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFileGetIdsTest.php - Returns information about the file to be migrated.
1 method overrides MigrateFileTest::getFileMigrationInfo()
- MigrateFileGetIdsTest::getFileMigrationInfo in core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFileGetIdsTest.php - Returns information about the file to be migrated.
File
-
core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFileTest.php, line 35
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',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.