You are here

public function MigratePrivateFileTest::testFileMigration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::testFileMigration()
  2. 9 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php \Drupal\Tests\file\Kernel\Migrate\d7\MigratePrivateFileTest::testFileMigration()

Tests that all expected files are migrated.

File

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

Class

MigratePrivateFileTest
Tests private files migration.

Namespace

Drupal\Tests\file\Kernel\Migrate\d7

Code

public function testFileMigration() {
  $this
    ->assertEntity(3, 'Babylon5.txt', 'private://Babylon5.txt', 'text/plain', '3', '1486104045', '1486104045', '1');
}