You are here

protected function TestMigrateExecutable::getSource in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php \Drupal\Tests\migrate\Kernel\TestMigrateExecutable::getSource()
  2. 9 core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php \Drupal\Tests\migrate\Kernel\TestMigrateExecutable::getSource()

Returns the source.

Makes sure source is initialized based on migration settings.

Return value

\Drupal\migrate\Plugin\MigrateSourceInterface The source.

Overrides MigrateExecutable::getSource

File

core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php, line 23

Class

TestMigrateExecutable
Tests MigrateExecutable.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected function getSource() {

  // This adds test coverage that this works.
  return new TestFilterIterator(parent::getSource());
}