function MigratePrivateFileTest::getFileMigrationInfo

Same name in other branches
  1. 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::getFileMigrationInfo()
  2. 8.9.x core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::getFileMigrationInfo()
  3. 10 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::getFileMigrationInfo()

Overrides FileMigrationSetupTrait::getFileMigrationInfo

File

core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php, line 36

Class

MigratePrivateFileTest
Tests private files migration.

Namespace

Drupal\Tests\file\Kernel\Migrate\d7

Code

protected function getFileMigrationInfo() : array {
    return [
        'path' => 'private://sites/default/private/Babylon5.txt',
        'size' => 3,
        'base_path' => 'private://',
        'plugin_id' => 'd7_file_private',
    ];
}

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