Neos\ContentRepository\Tests\Functional\Domain\LayeredWorkspacesTest::nodeFromLiveWorkspaceChangedInGroupWorkspaceAndRemovedInPersonalWorkspaceExistsRemovedInGroupWorkspace PHP Метод

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

    public function nodeFromLiveWorkspaceChangedInGroupWorkspaceAndRemovedInPersonalWorkspaceExistsRemovedInGroupWorkspace()
    {
        $liveContext = $this->contextFactory->create([]);
        $liveContext->getRootNode()->createNode('foo');
        $this->persistenceManager->persistAll();
        $groupContext = $this->contextFactory->create(['workspaceName' => $this->currentGroupWorkspace]);
        $groupContext->getRootNode()->getNode('foo')->setProperty('someProperty', 'someValue');
        $this->persistenceManager->persistAll();
        $this->rootNode->getNode('foo')->remove();
        $this->persistenceManager->persistAll();
        $this->rootNode->getContext()->getWorkspace()->publish($this->groupWorkspace);
        $this->persistenceManager->persistAll();
        $groupContextWithRemovedContent = $this->contextFactory->create(['workspaceName' => $this->currentGroupWorkspace, 'removedContentShown' => true]);
        $fooNodeInGroupWorkspace = $groupContextWithRemovedContent->getRootNode()->getNode('foo');
        $this->assertInstanceOf(NodeInterface::class, $fooNodeInGroupWorkspace);
        $this->assertSame($this->currentGroupWorkspace, $fooNodeInGroupWorkspace->getNodeData()->getWorkspace()->getName());
        $this->assertTrue($fooNodeInGroupWorkspace->isRemoved());
    }