You are here

public function MigrateUploadFieldTest::testUpload in Zircon Profile 8

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

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

File

core/modules/file/src/Tests/Migrate/d6/MigrateUploadFieldTest.php, line 32
Contains \Drupal\file\Tests\Migrate\d6\MigrateUploadFieldTest.

Class

MigrateUploadFieldTest
Uploads migration.

Namespace

Drupal\file\Tests\Migrate\d6

Code

public function testUpload() {
  $field_storage = FieldStorageConfig::load('node.upload');
  $this
    ->assertIdentical('node.upload', $field_storage
    ->id());
  $this
    ->assertIdentical(array(
    'node',
    'upload',
  ), Migration::load('d6_upload_field')
    ->getIdMap()
    ->lookupDestinationID(array(
    '',
  )));
}