You are here

public function TestSqlBase::setMigration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 135
Contains \Drupal\Tests\migrate\Unit\SqlBaseTest.

Class

TestSqlBase

Namespace

Drupal\Tests\migrate\Unit

Code

public function setMigration($migration) {
  $this->migration = $migration;
}