Neos\ContentRepository\Tests\Functional\Domain\NodeConstraintsTest::movingNodeToWhereItsSuperTypeIsDisallowedThrowsException PHP Метод

movingNodeToWhereItsSuperTypeIsDisallowedThrowsException() публичный Метод

    public function movingNodeToWhereItsSuperTypeIsDisallowedThrowsException()
    {
        $nodeTypeExtendingDocument = $this->nodeTypeManager->getNodeType('Neos.ContentRepository.Testing:Page');
        $nodeTypeExtendingContent = $this->nodeTypeManager->getNodeType('Neos.ContentRepository.Testing:Text');
        $documentNode = $this->rootNode->createNode('document', $nodeTypeExtendingDocument);
        $contentNode = $this->rootNode->createNode('content', $nodeTypeExtendingContent);
        $documentNode->moveInto($contentNode);
    }