$plugin =
$this->
createMock('Drupal\migrate\Plugin\MigrateDestinationInterface'
);
$plugin ->
method('getIds'
) ->
willReturn($this->destinationIds
);
$migration ->
method('getDestinationPlugin'
) ->
willReturn($plugin);
$event_dispatcher =
$this->
createMock('Symfony\Contracts\EventDispatcher\EventDispatcherInterface'
);
$migration_manager =
$this->
createMock('Drupal\migrate\Plugin\MigrationPluginManagerInterface'
);
$id_map =
new TestSqlIdMap($this->database,
[], 'sql',
[],
$migration,
$event_dispatcher,
$migration_manager);
$migration ->
method('getIdMap'
) ->
willReturn($id_map);
return $id_map;
} /**
* Sets defaults for SQL ID map plugin tests.
*
* @return array
* An associative array with the following keys:
* - source_row_status
* - rollback_action
* - hash
*/