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

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

    public function inheritanceBasedConstraintsWork()
    {
        $testingNodeTypeWithSubnodes = $this->nodeTypeManager->getNodeType('Neos.ContentRepository.Testing:NodeTypeWithSubnodes');
        $testingNodeTypeThatInheritsFromDocumentType = $this->nodeTypeManager->getNodeType('Neos.ContentRepository.Testing:Page');
        $nodeWithChildNode = $this->rootNode->createNode('node-with-child-node', $testingNodeTypeWithSubnodes);
        $nodeWithChildNode->createNode('page', $testingNodeTypeThatInheritsFromDocumentType);
        $this->assertCount(2, $nodeWithChildNode->getChildNodes());
    }