Test settings for field_collection field instances.
@dataProvider getData
array $source: The data source.
array $expected: The expected result.
public function testFieldCollectionInstanceFieldSettings(array $source, array $expected) {
$this->row
->expects($this
->any())
->method('getSourceProperty')
->willReturnMap([
[
'type',
'field_collection',
],
[
'field_name',
'field_field_collection_bundle_one',
],
]);
$value = $this->plugin
->transform($source, $this->migrateExecutable, $this->row, 'settings');
$this
->assertEquals($expected, $value);
}