getMock(MigrationInterface::class); $plugin = new FieldSettings([], 'd7_field_settings', [], $migration); $executable = $this->getMock(MigrateExecutableInterface::class); $row = $this->getMockBuilder(Row::class) ->disableOriginalConstructor() ->getMock(); $row->expects($this->atLeastOnce()) ->method('getSourceProperty') ->willReturnMap([ ['settings', ['default_image' => NULL]], ['type', 'image'], ]); $value = $plugin->transform([], $executable, $row, 'foo'); $this->assertInternalType('array', $value); $this->assertSame('', $value['default_image']['uuid']); } }