You are here

protected function MigrateTestBase::executeMigration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::executeMigration()
  2. 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::executeMigration()

Executes a single migration.

Parameters

string|\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to execute, or its ID.

130 calls to MigrateTestBase::executeMigration()
EntityContentBaseTest::testOverwriteAllMappedProperties in core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php
Tests overwriting all mapped properties in the destination entity (default behavior).
EntityContentBaseTest::testOverwriteProperties in core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php
Tests overwriting selected properties in the destination entity, specified in the destination configuration.
EntityRevisionTest::testRevisionTranslation in core/modules/migrate/tests/src/Kernel/Plugin/EntityRevisionTest.php
Tests that EntityRevision correctly handles revision translations.
FieldDiscoveryTest::setUp in core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php
MigrateActionConfigsTest::setUp in core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionConfigsTest.php

... See full list

File

core/modules/migrate/tests/src/Kernel/MigrateTestBase.php, line 165

Class

MigrateTestBase
Creates abstract base class for migration tests.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected function executeMigration($migration) {
  if (is_string($migration)) {
    $this->migration = $this
      ->getMigration($migration);
  }
  else {
    $this->migration = $migration;
  }
  if ($this instanceof MigrateDumpAlterInterface) {
    static::migrateDumpAlter($this);
  }
  $this
    ->prepareMigration($this->migration);
  (new MigrateExecutable($this->migration, $this))
    ->import();
}