You are here

protected function MigrateEckTest::getFileMigrationInfo in Entity Construction Kit (ECK) 8

Returns information about the file to be migrated.

Return value

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

Overrides FileMigrationSetupTrait::getFileMigrationInfo

File

tests/src/Kernel/Migrate/d7/MigrateEckTest.php, line 142

Class

MigrateEckTest
Tests migration of ECK entities.

Namespace

Drupal\Tests\eck\Kernel\Migrate\d7

Code

protected function getFileMigrationInfo() {
  return [
    'path' => 'public://sites/default/files/test.txt',
    'size' => '14',
    'base_path' => 'public://',
    'plugin_id' => 'd7_file',
  ];
}