Sulu\Bundle\ContentBundle\Content\Types\InternalLinks::getReferencedUuids PHP Method

getReferencedUuids() public method

public getReferencedUuids ( Sulu\Component\Content\Compat\PropertyInterface $property )
$property Sulu\Component\Content\Compat\PropertyInterface
    public function getReferencedUuids(PropertyInterface $property)
    {
        $data = $property->getValue();
        return isset($data) ? $data : [];
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @dataProvider provideGetReferencedUuids
  */
 public function testGetReferencedUuids($propertyValue, $expected)
 {
     $this->property->getValue()->willReturn($propertyValue);
     $uuids = $this->type->getReferencedUuids($this->property->reveal());
     $this->assertEquals($expected, $uuids);
 }