public function testLoadFromProperty() { $property = new Property('url', [], 'resource_locator'); $node = $this->sessionManager->getContentNode('sulu_io')->addNode('test'); $node->addMixin('sulu:content'); $node->setProperty($property->getName(), '/test'); $this->session->save(); $this->resourceLocator->read($node, $property, 1, 'sulu_io', 'en'); $this->assertEquals('/test', $property->getValue()); }
/** * Returns data for property. */ private function getPropertyData($document, LegacyProperty $property) { return $document->getStructure()->getContentViewProperty($property->getName())->getValue(); }