/**
* @coversDefaultClass \Drupal\migrate\Plugin\migrate\process\MigrationLookup
* @group migrate
*/
class MigrationLookupTest extends MigrationLookupTestCase
{ /**
* @covers ::transform
*/
public function testTransformWithStubSkipping() { $migration_plugin =
$this->
prophesize(MigrationInterface::
class);
$migration_plugin_manager =
$this->
prophesize(MigrationPluginManagerInterface::
class);
$destination_id_map =
$this->
prophesize(MigrateIdMapInterface::
class);
$destination_migration =
$this->
prophesize(MigrationInterface::
class);
$destination_migration->
getIdMap()->
willReturn($destination_id_map->
reveal());
$destination_id_map->
lookupDestinationIds([1
])->
willReturn(NULL
);
// Ensure the migration plugin manager returns our migration.
$migration_plugin_manager->
createInstances(Argument::
exact(['destination_migration'
])) ->
willReturn(['destination_migration' =>
$destination_migration->
reveal()]);