function MigrateTestBase::prepareMigration

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::prepareMigration()
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::prepareMigration()
  3. 11.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::prepareMigration()

Modify a migration's configuration before executing it.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to execute.

1 call to MigrateTestBase::prepareMigration()
MigrateTestBase::executeMigration in core/modules/migrate/tests/src/Kernel/MigrateTestBase.php
Executes a single migration.

File

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

Class

MigrateTestBase
Creates abstract base class for migration tests.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected function prepareMigration(MigrationInterface $migration) {
    // Default implementation for test classes not requiring modification.
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.