protected function MigrateSourceTest::getMigrateExecutable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\MigrateSourceTest::getMigrateExecutable()
Get a mock executable for the test.
Parameters
\Drupal\migrate\Entity\MigrationInterface $migration: The migration entity.
Return value
\Drupal\migrate\MigrateExecutable The migrate executable.
1 call to MigrateSourceTest::getMigrateExecutable()
- MigrateSourceTest::getSource in core/
modules/ migrate/ tests/ src/ Unit/ MigrateSourceTest.php - Get the source plugin to test.
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateSourceTest.php, line 378 - Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.
Class
- MigrateSourceTest
- @coversDefaultClass \Drupal\migrate\Plugin\migrate\source\SourcePluginBase @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
protected function getMigrateExecutable($migration) {
/** @var \Drupal\migrate\MigrateMessageInterface $message */
$message = $this
->getMock('Drupal\\migrate\\MigrateMessageInterface');
/** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher */
$event_dispatcher = $this
->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
return new MigrateExecutable($migration, $message, $event_dispatcher);
}