'id' => 'test',
];
/**
* Tests the sub_process process plugin.
*
* @dataProvider providerTestSubProcess
*/
public function testSubProcess($process_configuration,
$source_values =
[]) { $migration =
$this->
getMigration();
// Set up the properties for the sub_process.
$plugin =
new SubProcess($process_configuration, 'sub_process',
[]);
// Manually create the plugins. Migration::getProcessPlugins does this
// normally but the plugin system is not available.
foreach ($process_configuration['process'
] as $destination =>
$source) { $sub_process_plugins[$destination][] =
new Get(['source' =>
$source], 'get',
[]);
} // Set up the key plugins.
$key_plugin['key'
][] =
new Get(['source' => '@id'
], 'get',
[]);
$migration->
expects($this->
exactly(2
)) ->
method('getProcessPlugins'
) ->
willReturnOnConsecutiveCalls( $sub_process_plugins,