Skip to content
Snippets Groups Projects
Commit 3b8dc0e2 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 a10e0f8d 16c58f78
No related branches found
No related tags found
No related merge requests found
Pipeline #47874 passed
Pipeline: drupal

#47876

    ......@@ -3,7 +3,7 @@
    # https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing
    _phpunit_testgroups_to_execute: &testgroups
    # Default: all of Drupal core's test suite runs.
    testgroups: '--all'
    testgroups: '--class "\Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTest"'
    # Alternative: run only the tests for one particular module.
    # testgroups: '--module ckeditor5'
    build:
    ......
    ......@@ -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