function MigrateNodeTest::getFileMigrationInfo

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

Overrides FileMigrationSetupTrait::getFileMigrationInfo

File

core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php, line 76

Class

MigrateNodeTest
Tests node migration.

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

protected function getFileMigrationInfo() : array {
    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.