class TestMigrateUpgradeDrushRunner in Migrate Upgrade 8.3
Test class to expose protected methods.
Hierarchy
- class \Drupal\migrate_upgrade\MigrateUpgradeDrushRunner uses StringTranslationTrait, MigrationConfigurationTrait
- class \Drupal\Tests\migrate_upgrade\Unit\TestMigrateUpgradeDrushRunner
Expanded class hierarchy of TestMigrateUpgradeDrushRunner
File
- tests/
src/ Unit/ MigrateUpgradeDrushRunnerTest.php, line 186
Namespace
Drupal\Tests\migrate_upgrade\UnitView source
class TestMigrateUpgradeDrushRunner extends MigrateUpgradeDrushRunner {
/**
* {@inheritdoc}
*/
public function __construct(LoggerInterface $logger, array $options = []) {
parent::__construct($logger, $options);
$this->migrationList = [
'my_previous_migration' => [],
'my_previous_migration_1' => [],
'my_previous_migration_2' => [],
'derivable_migration:derivitive_1' => [],
'derivable_migration:derivitive_2' => [],
'required_dependency' => [],
'optional_dependency' => [],
];
}
// @codingStandardsIgnoreStart
/**
* {@inheritdoc}
*
*/
public function substituteIds(array $entity_array) {
return parent::substituteIds($entity_array);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateUpgradeDrushRunner:: |
protected | property | List of D6 node migration IDs we've seen. | |
MigrateUpgradeDrushRunner:: |
protected | property | List of D6 node revision migration IDs we've seen. | |
MigrateUpgradeDrushRunner:: |
protected | property | The state key used to store database configuration. | |
MigrateUpgradeDrushRunner:: |
protected | property | Logger channel. | |
MigrateUpgradeDrushRunner:: |
protected static | property | MigrateMessage instance to display messages during the migration process. | |
MigrateUpgradeDrushRunner:: |
protected | property | The list of migrations to run and their configuration. | |
MigrateUpgradeDrushRunner:: |
protected | property | List of process plugin IDs used to lookup migrations. | |
MigrateUpgradeDrushRunner:: |
protected | property | Drush options parameters. | |
MigrateUpgradeDrushRunner:: |
protected | property | The Drupal version being imported. | |
MigrateUpgradeDrushRunner:: |
protected | function | Adds the source base path configuration to relevant migrations. | |
MigrateUpgradeDrushRunner:: |
public | function | From the provided source information, configure the appropriate migrations. | |
MigrateUpgradeDrushRunner:: |
protected | function | Expand derivative migration dependencies. | |
MigrateUpgradeDrushRunner:: |
public | function | Export the configured migration plugins as configuration entities. | |
MigrateUpgradeDrushRunner:: |
public | function | Run the configured migrations. | |
MigrateUpgradeDrushRunner:: |
protected | function | Modify an ID. | |
MigrateUpgradeDrushRunner:: |
public static | function | Display any messages being logged to the ID map. | |
MigrateUpgradeDrushRunner:: |
protected | function | For D6 file fields, make sure the d6_file migration is prefixed. | |
MigrateUpgradeDrushRunner:: |
public | function | Rolls back the configured migrations. | |
MigrateUpgradeDrushRunner:: |
protected | function | Set entity properties. | |
MigrateUpgradeDrushRunner:: |
protected | function | Set options parameters according to Drush version. | |
MigrateUpgradeDrushRunner:: |
protected | function | Recursively substitute IDs for migration plugins. | |
MigrationConfigurationTrait:: |
protected | property | The config factory service. | |
MigrationConfigurationTrait:: |
protected | property | The follow-up migration tags. | |
MigrationConfigurationTrait:: |
protected | property | The migration plugin manager service. | |
MigrationConfigurationTrait:: |
protected | property | The state service. | |
MigrationConfigurationTrait:: |
protected | function | Creates the necessary state entries for SqlBase::getDatabase() to work. | |
MigrationConfigurationTrait:: |
protected | function | Gets the config factory service. | |
MigrationConfigurationTrait:: |
protected | function | Gets the database connection for the source Drupal database. | |
MigrationConfigurationTrait:: |
protected | function | Returns the follow-up migration tags. | |
MigrationConfigurationTrait:: |
public static | function | Determines what version of Drupal the source database contains. | |
MigrationConfigurationTrait:: |
protected | function | Gets the migration plugin manager service. | |
MigrationConfigurationTrait:: |
protected | function | Gets the migrations for import. | |
MigrationConfigurationTrait:: |
protected | function | Gets the state service. | |
MigrationConfigurationTrait:: |
protected | function | Gets the system data from the system table of the source Drupal database. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TestMigrateUpgradeDrushRunner:: |
public | function |
Rewrite any migration plugin IDs so they won't conflict with the core IDs. Overrides MigrateUpgradeDrushRunner:: |
|
TestMigrateUpgradeDrushRunner:: |
public | function |
MigrateUpgradeDrushRunner constructor. Overrides MigrateUpgradeDrushRunner:: |