public function TestSqlBase::setMigration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::setMigration()
Allows us to set the migration during the test.
Parameters
mixed $migration: The migration mock.
File
- core/
modules/ migrate/ tests/ src/ Unit/ SqlBaseTest.php, line 192 - Contains \Drupal\Tests\migrate\Unit\SqlBaseTest.
Class
- TestSqlBase
- Creates a base source class for SQL migration testing.
Namespace
Drupal\Tests\migrate\UnitCode
public function setMigration($migration) {
$this->migration = $migration;
}