function TestSqlBase::setMigration
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::setMigration()
- 8.9.x core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::setMigration()
- 11.x 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 189
Class
- TestSqlBase
- Creates a base source class for SQL migration testing.
Namespace
Drupal\Tests\migrate\UnitCode
public function setMigration($migration) {
$this->migration = $migration;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.