$value =
$this->plugin->
transform(NULL,
$this->migrateExecutable,
$this->row, 'destination_property'
);
$this->
assertSame(['source_value1', 'source_value2', 'source_value3', 'source_value4'
],
$value);
} /**
* Tests the Get plugin when source has integer values.
*
* @dataProvider integerValuesDataProvider
*/
public function testIntegerValues($source,
$expected_value) { $this->row->
expects($this->
atMost(2
)) ->
method('get'
) ->
willReturnOnConsecutiveCalls('val1', 'val2'
);
$this->plugin =
new Get(['source' =>
$source], '',
[]);
$return =
$this->plugin->
transform(NULL,
$this->migrateExecutable,
$this->row, 'destination_property'
);
$this->
assertSame($expected_value,
$return);
} /**
* Provides data for the successful lookup test.
*
* @return array
*/