Neos\ContentRepository\Tests\Unit\Domain\Model\ContextualizedNodeTest::setNodeTypeOnNodeWithNonMatchingContextMaterializesNodeData PHP Method

setNodeTypeOnNodeWithNonMatchingContextMaterializesNodeData() public method

    public function setNodeTypeOnNodeWithNonMatchingContextMaterializesNodeData()
    {
        $nodeType = $this->getMockBuilder(NodeType::class)->disableOriginalConstructor()->getMock();
        $node = $this->setUpNodeWithNonMatchingContext();
        $node->getNodeData()->expects($this->once())->method('setNodeType')->with($nodeType);
        $node->setNodeType($nodeType);
    }