You are here

public function TestMigration::setSourcePlugin in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::setSourcePlugin()

Sets the source Plugin.

Parameters

\Drupal\migrate\Plugin\MigrateSourceInterface $source_plugin: The source Plugin.

File

core/modules/migrate/tests/src/Unit/MigrationTest.php, line 237
Contains \Drupal\Tests\migrate\Unit\MigrationTest.

Class

TestMigration
Defines the TestMigration class.

Namespace

Drupal\Tests\migrate\Unit

Code

public function setSourcePlugin(MigrateSourceInterface $source_plugin) {
  $this->sourcePlugin = $source_plugin;
}