MigrateFileGetIdsTest.php

Same filename in other branches
  1. 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php
  2. 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php

Namespace

Drupal\Tests\file\Kernel\Migrate\d7

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\file\Kernel\Migrate\d7;


/**
 * Tests the migration of used files.
 *
 * @group file
 */
class MigrateFileGetIdsTest extends MigrateFileTest {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'file',
        'file_test_get_ids',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function getFileMigrationInfo() : array {
        $migration_info = parent::getFileMigrationInfo();
        $migration_info['plugin_id'] = 'd7_file_used';
        return $migration_info;
    }

}

Classes

Title Deprecated Summary
MigrateFileGetIdsTest Tests the migration of used files.

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