3 namespace Drupal\Tests\file\Kernel\Migrate\d6;
5 use Drupal\field\Entity\FieldStorageConfig;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
11 * @group migrate_drupal_6
13 class MigrateUploadFieldTest extends MigrateDrupal6TestBase {
18 public static $modules = ['menu_ui'];
23 protected function setUp() {
25 $this->migrateFields();
29 * Tests the Drupal 6 upload settings to Drupal 8 field migration.
31 public function testUpload() {
32 $field_storage = FieldStorageConfig::load('node.upload');
33 $this->assertIdentical('node.upload', $field_storage->id());
34 $this->assertIdentical(['node', 'upload'], $this->getMigration('d6_upload_field')->getIdMap()->lookupDestinationID(['']));