You are here

public function MigrateUploadFieldTest::testUpload in Drupal 8

Same name and namespace in other branches
  1. 9 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
    ->assertIdentical('node.upload', $field_storage
    ->id());
  $this
    ->assertIdentical([
    [
      'node',
      'upload',
    ],
  ], $this
    ->getMigration('d6_upload_field')
    ->getIdMap()
    ->lookupDestinationIds([
    '',
  ]));
}