You are here

protected function MigrateFileGetIdsTest::getFileMigrationInfo in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileGetIdsTest::getFileMigrationInfo()

Returns information about the file to be migrated.

Return value

array Array with keys 'path', 'size', 'base_path', and 'plugin_id'.

Overrides MigrateFileTest::getFileMigrationInfo

File

core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php, line 20

Class

MigrateFileGetIdsTest
Tests the migration of used files.

Namespace

Drupal\Tests\file\Kernel\Migrate\d7

Code

protected function getFileMigrationInfo() {
  $migration_info = parent::getFileMigrationInfo();
  $migration_info['plugin_id'] = 'd7_file_used';
  return $migration_info;
}