Neos\Neos\Tests\Functional\NodeRenamingTest::moveBeforeInPersonalWorkspaceDoesNotAffectLiveWorkspace PHP Method

moveBeforeInPersonalWorkspaceDoesNotAffectLiveWorkspace() public method

    public function moveBeforeInPersonalWorkspaceDoesNotAffectLiveWorkspace()
    {
        // move "teaser" before "main/dummy42"
        $teaserTestWorkspace = $this->nodeInTestWorkspace->getNode('teaser');
        $teaserTestWorkspace->moveBefore($this->nodeInTestWorkspace->getNode('main/dummy42'));
        $this->assertNull($this->nodeInTestWorkspace->getNode('teaser/dummy42a'), 'moving not successful (1)');
        $this->assertNotNull($this->nodeInTestWorkspace->getNode('main/teaser/dummy42a'), 'moving not successful (2)');
        $this->assertNotNull($this->node->getNode('teaser'), 'moving shined through into live workspace (1)');
        $this->assertNotNull($this->node->getNode('teaser/dummy42a'), 'moving shined through into live workspace (2)');
        $this->assertNull($this->node->getNode('main/teaser/dummy42a'), 'moving shined through into live workspace (3)');
    }