Neos\Neos\Tests\Functional\AbstractNodeTest::getNodeWithContextPath PHP Метод

getNodeWithContextPath() защищенный Метод

Retrieve a node through the property mapper
protected getNodeWithContextPath ( $contextPath ) : Neos\ContentRepository\Domain\Model\NodeInterface
$contextPath
Результат Neos\ContentRepository\Domain\Model\NodeInterface
    protected function getNodeWithContextPath($contextPath)
    {
        /* @var $propertyMapper \Neos\Flow\Property\PropertyMapper */
        $propertyMapper = $this->objectManager->get(PropertyMapper::class);
        $node = $propertyMapper->convert($contextPath, Node::class);
        $this->assertFalse($propertyMapper->getMessages()->hasErrors(), 'There were errors converting ' . $contextPath);
        return $node;
    }