class MigrateFileGetIdsTest

Same name and namespace in other branches
  1. 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileGetIdsTest
  2. 11.x core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigrateFileGetIdsTest

Tests the migration of used files.

@group file

Hierarchy

Expanded class hierarchy of MigrateFileGetIdsTest

File

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

Namespace

Drupal\Tests\file\Kernel\Migrate\d7
View source
class MigrateFileGetIdsTest extends MigrateFileTest {
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'file',
    'file_test_get_ids',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function getFileMigrationInfo() {
    $migration_info = parent::getFileMigrationInfo();
    $migration_info['plugin_id'] = 'd7_file_used';
    return $migration_info;
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.