Same name and namespace in other branches
- 8.9.x core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadFieldTest
- 9 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadFieldTest
Uploads migration.
@group migrate_drupal_6
Hierarchy
- class \Drupal\Tests\migrate\Kernel\MigrateTestBase extends \Drupal\KernelTests\KernelTestBase implements MigrateMessageInterface
- class \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase
- class \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase uses NodeMigrateTypeTestTrait
- class \Drupal\Tests\file\Kernel\Migrate\d6\MigrateUploadFieldTest
- class \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase uses NodeMigrateTypeTestTrait
- class \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase
Expanded class hierarchy of MigrateUploadFieldTest
File
- core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d6/ MigrateUploadFieldTest.php, line 15
Namespace
Drupal\Tests\file\Kernel\Migrate\d6View source
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() {
$field_storage = FieldStorageConfig::load('node.upload');
$this
->assertSame('node.upload', $field_storage
->id());
$this
->assertSame([
[
'node',
'upload',
],
], $this
->getMigration('d6_upload_field')
->getIdMap()
->lookupDestinationIds([
'',
]));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateDrupal6TestBase:: |
protected | function | Gets the path to the fixture file. | 13 |
MigrateDrupal6TestBase:: |
protected | function | Executes all content migrations. | |
MigrateDrupal6TestBase:: |
protected | function | Migrates node types. | |
MigrateDrupal6TestBase:: |
protected | function | Executes all field migrations. | |
MigrateDrupal6TestBase:: |
protected | function | Executes all taxonomy migrations. | |
MigrateDrupal6TestBase:: |
protected | function | Executes all user migrations. | |
MigrateDrupalTestBase:: |
protected | function | Loads a database fixture into the source database connection. | |
MigrateTestBase:: |
protected | property | TRUE to collect messages instead of displaying them. | |
MigrateTestBase:: |
protected | property | A logger prophecy object. | 2 |
MigrateTestBase:: |
protected | property | A two dimensional array of messages. | |
MigrateTestBase:: |
protected | property | The primary migration being tested. | 1 |
MigrateTestBase:: |
protected | property | The source database connection. | |
MigrateTestBase:: |
private | function | Cleans up the test migrate connection. | |
MigrateTestBase:: |
private | function | Changes the database connection to the prefixed one. | |
MigrateTestBase:: |
public | function |
Displays a migrate message. Overrides MigrateMessageInterface:: |
|
MigrateTestBase:: |
protected | function | Executes a single migration. | |
MigrateTestBase:: |
protected | function | Executes a set of migrations in dependency order. | |
MigrateTestBase:: |
protected | function | Gets the migration plugin. | |
MigrateTestBase:: |
protected | function | Records a failure in the map table of a specific migration. | |
MigrateTestBase:: |
protected | function | Modify a migration's configuration before executing it. | |
MigrateTestBase:: |
protected | function | Prepare any dependent migrations. | |
MigrateTestBase:: |
protected | function | Injects the test logger into the container. | |
MigrateTestBase:: |
public | function | Start collecting messages and erase previous messages. | |
MigrateTestBase:: |
public | function | Stop collecting messages. | |
MigrateTestBase:: |
protected | function | ||
MigrateUploadFieldTest:: |
protected static | property |
Modules to enable. Overrides MigrateDrupal6TestBase:: |
|
MigrateUploadFieldTest:: |
protected | function |
Overrides MigrateDrupal6TestBase:: |
|
MigrateUploadFieldTest:: |
public | function | Tests the Drupal 6 upload settings to Drupal 8 field migration. | |
NodeMigrateTypeTestTrait:: |
public | property | The migrate_map table name. | |
NodeMigrateTypeTestTrait:: |
protected | function | Gets the migrate_map table name. | |
NodeMigrateTypeTestTrait:: |
protected | function | Create a node migrate_map table. | |
NodeMigrateTypeTestTrait:: |
protected | function | Gets the numbers of complete and classic node migrate_map tables. | |
NodeMigrateTypeTestTrait:: |
protected | function | Remove the node migrate map table. |