public function testGetNode() { $property = $this->node->getProperty('numberPropertyNode/jcr:content/ref'); $idnode = $this->node->getNode('idExample'); //TODO: is the type wrong because we import a document view? would it work with system view? $this->assertEquals(\PHPCR\PropertyType::REFERENCE, $property->getType(), 'Expecting REFERENCE type'); $target = $property->getNode(); $this->assertInstanceOf('PHPCR\\NodeInterface', $target); $this->assertSame($target, $idnode); }