read() public method

public read ( PHPCR\NodeInterface $node, Sulu\Component\Content\Compat\PropertyInterface $property, $webspaceKey, $languageCode, $segmentKey )
$node PHPCR\NodeInterface
$property Sulu\Component\Content\Compat\PropertyInterface
 public function testReadWithMultipleTypes()
 {
     $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->read($node, $property, 'test', 'en', 's');
 }