function MigrateUploadFieldTest::testUpload

Same name 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()
  3. 11.x 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([
        '',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.