/**
* @test
*/
public function removedNodeWithoutExistingTargetNodeDataWillBeRemovedWhenPublished()
{
$homepageNode = $this->rootNode->createNode('homepage');
$homepageNode->remove();
$this->rootNode->getWorkspace()->publish($this->liveWorkspace);
$this->saveNodesAndTearDownRootNodeAndRepository();
$this->setUpRootNodeAndRepository();
$liveContext = $this->contextFactory->create(array('workspaceName' => 'live', 'removedContentShown' => true));
$liveRootNode = $liveContext->getRootNode();
$liveHomepageNode = $liveRootNode->getNode('homepage');
$this->assertTrue($liveHomepageNode === null, 'A removed node should be removed after publishing, but it was still found');
}