Inheritance: extends Sulu\Component\Content\ComplexContentType, implements Sulu\Component\Content\ContentTypeExportInterface
 public function testReadPreviewMultipleTypes()
 {
     $config = '{"config":{"conf1": 1, "conf2": 2}, "displayOption": "right", "ids": [1,2,3,4]}';
     $node = $this->getMockForAbstractClass('Sulu\\Bundle\\MediaBundle\\Tests\\Unit\\Content\\Types\\NodeInterface', [], '', true, true, true, ['getPropertyValueWithDefault']);
     $property = $this->getMockForAbstractClass('Sulu\\Component\\Content\\Compat\\PropertyInterface', [], '', true, true, true, ['setValue', 'getParams']);
     $node->expects($this->any())->method('getPropertyValueWithDefault')->will($this->returnValueMap([['property', '{}', $config]]));
     $property->expects($this->any())->method('getName')->will($this->returnValue('property'));
     $property->expects($this->any())->method('setValue')->with(json_decode($config, true))->will($this->returnValue(null));
     $property->expects($this->any())->method('getParams')->will($this->returnValue(['types' => 'document,image']));
     $this->mediaSelection->readForPreview(['config' => ['conf1' => 1, 'conf2' => 2], 'displayOption' => 'right', 'ids' => [1, 2, 3, 4]], $property, 'test', 'en', 's');
 }