public function getReferencedUuids(PropertyInterface $property) { $data = $property->getValue(); return isset($data) ? $data : []; }
/** * @dataProvider provideGetReferencedUuids */ public function testGetReferencedUuids($propertyValue, $expected) { $this->property->getValue()->willReturn($propertyValue); $uuids = $this->type->getReferencedUuids($this->property->reveal()); $this->assertEquals($expected, $uuids); }