You are here

class TestMigrateUpgradeDrushRunner in Migrate Upgrade 8.3

Test class to expose protected methods.

Hierarchy

Expanded class hierarchy of TestMigrateUpgradeDrushRunner

File

tests/src/Unit/MigrateUpgradeDrushRunnerTest.php, line 186

Namespace

Drupal\Tests\migrate_upgrade\Unit
View 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

Namesort descending Modifiers Type Description Overrides
MigrateUpgradeDrushRunner::$d6NodeMigrations protected property List of D6 node migration IDs we've seen.
MigrateUpgradeDrushRunner::$d6RevisionMigrations protected property List of D6 node revision migration IDs we've seen.
MigrateUpgradeDrushRunner::$databaseStateKey protected property The state key used to store database configuration.
MigrateUpgradeDrushRunner::$logger protected property Logger channel.
MigrateUpgradeDrushRunner::$messages protected static property MigrateMessage instance to display messages during the migration process.
MigrateUpgradeDrushRunner::$migrationList protected property The list of migrations to run and their configuration.
MigrateUpgradeDrushRunner::$migrationLookupPluginIds protected property List of process plugin IDs used to lookup migrations.
MigrateUpgradeDrushRunner::$options protected property Drush options parameters.
MigrateUpgradeDrushRunner::$version protected property The Drupal version being imported.
MigrateUpgradeDrushRunner::applyFilePath protected function Adds the source base path configuration to relevant migrations.
MigrateUpgradeDrushRunner::configure public function From the provided source information, configure the appropriate migrations.
MigrateUpgradeDrushRunner::expandPluginIds protected function Expand derivative migration dependencies.
MigrateUpgradeDrushRunner::export public function Export the configured migration plugins as configuration entities.
MigrateUpgradeDrushRunner::import public function Run the configured migrations.
MigrateUpgradeDrushRunner::modifyId protected function Modify an ID.
MigrateUpgradeDrushRunner::onIdMapMessage public static function Display any messages being logged to the ID map.
MigrateUpgradeDrushRunner::prefixFileMigration protected function For D6 file fields, make sure the d6_file migration is prefixed.
MigrateUpgradeDrushRunner::rollback public function Rolls back the configured migrations.
MigrateUpgradeDrushRunner::setEntityProperties protected function Set entity properties.
MigrateUpgradeDrushRunner::setOptions protected function Set options parameters according to Drush version.
MigrateUpgradeDrushRunner::substituteMigrationIds protected function Recursively substitute IDs for migration plugins.
MigrationConfigurationTrait::$configFactory protected property The config factory service.
MigrationConfigurationTrait::$followUpMigrationTags protected property The follow-up migration tags.
MigrationConfigurationTrait::$migrationPluginManager protected property The migration plugin manager service.
MigrationConfigurationTrait::$state protected property The state service.
MigrationConfigurationTrait::createDatabaseStateSettings protected function Creates the necessary state entries for SqlBase::getDatabase() to work.
MigrationConfigurationTrait::getConfigFactory protected function Gets the config factory service.
MigrationConfigurationTrait::getConnection protected function Gets the database connection for the source Drupal database.
MigrationConfigurationTrait::getFollowUpMigrationTags protected function Returns the follow-up migration tags.
MigrationConfigurationTrait::getLegacyDrupalVersion public static function Determines what version of Drupal the source database contains.
MigrationConfigurationTrait::getMigrationPluginManager protected function Gets the migration plugin manager service.
MigrationConfigurationTrait::getMigrations protected function Gets the migrations for import.
MigrationConfigurationTrait::getState protected function Gets the state service.
MigrationConfigurationTrait::getSystemData protected function Gets the system data from the system table of the source Drupal database.
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TestMigrateUpgradeDrushRunner::substituteIds public function Rewrite any migration plugin IDs so they won't conflict with the core IDs. Overrides MigrateUpgradeDrushRunner::substituteIds
TestMigrateUpgradeDrushRunner::__construct public function MigrateUpgradeDrushRunner constructor. Overrides MigrateUpgradeDrushRunner::__construct