You are here

public function MigrateUploadFieldTest::testUpload in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadFieldTest::testUpload()
  2. 10 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadFieldTest::testUpload()

Tests the Drupal 6 upload settings to Drupal 8 field migration.

File

core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php, line 31

Class

MigrateUploadFieldTest
Uploads migration.

Namespace

Drupal\Tests\file\Kernel\Migrate\d6

Code

public function testUpload() {
  $field_storage = FieldStorageConfig::load('node.upload');
  $this
    ->assertSame('node.upload', $field_storage
    ->id());
  $this
    ->assertSame([
    [
      'node',
      'upload',
    ],
  ], $this
    ->getMigration('d6_upload_field')
    ->getIdMap()
    ->lookupDestinationIds([
    '',
  ]));
}