Skip to content
Snippets Groups Projects
Commit c0e6ad5a authored by quietone's avatar quietone
Browse files

Merge branch '3015369-migratetestbaseexecutemigrations-claims-to' into '11.x'

MigrateTestBase::executeMigrations() claims to execute migrations in dependency order but does not

See merge request !5344
parents 8a739dc5 43c0adb1
No related branches found
No related tags found
No related merge requests found
Pipeline #48428 passed
Pipeline: drupal

#48429

    ......@@ -186,12 +186,8 @@ protected function executeMigration($migration) {
    */
    protected function executeMigrations(array $ids) {
    $manager = $this->container->get('plugin.manager.migration');
    array_walk($ids, function ($id) use ($manager) {
    // This is possibly a base plugin ID and we want to run all derivatives.
    $instances = $manager->createInstances($id);
    $this->assertNotEmpty($instances, sprintf("No migrations created for id '%s'.", $id));
    array_walk($instances, [$this, 'executeMigration']);
    });
    $instances = $manager->createInstances($ids);
    array_walk($instances, [$this, 'executeMigration']);
    }
    /**
    ......
    ......@@ -60,8 +60,8 @@ protected function setUp(): void {
    'd7_language_content_settings',
    'd7_comment_field',
    'd7_comment_field_instance',
    'd7_node',
    'd7_node_translation',
    'd7_node',
    'd7_entity_translation_settings',
    'd7_taxonomy_term_entity_translation',
    'd7_node_entity_translation',
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment