function MigrateUploadFieldTest::testUpload

Same name in other branches
  1. 8.9.x 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->assertSame('node.upload', $field_storage->id());
    $this->assertSame([
        [
            '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.