MigrateUploadFieldTest.php
Same filename and directory in other branches
- 10 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php
- 11.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php
- 9 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php
Namespace
Drupal\Tests\file\Kernel\Migrate\d6File
-
core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d6/ MigrateUploadFieldTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
/**
* Uploads migration.
*/
class MigrateUploadFieldTest extends MigrateDrupal6TestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'menu_ui',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->migrateFields();
}
/**
* Tests the Drupal 6 upload settings to Drupal 8 field migration.
*/
public function testUpload() : void {
$field_storage = FieldStorageConfig::load('node.upload');
$this->assertSame('node.upload', $field_storage->id());
$this->assertSame([
[
'node',
'upload',
],
], $this->getMigration('d6_upload_field')
->getIdMap()
->lookupDestinationIds([
'',
]));
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| MigrateUploadFieldTest | Uploads migration. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.