public function setUp()
{
parent::setUp();
$contentDimensionRepository = $this->objectManager->get(ContentDimensionRepository::class);
$contentDimensionRepository->setDimensionsConfiguration(array('language' => array('default' => 'mul_ZZ')));
$this->currentTestWorkspaceName = uniqid('user-');
$this->contextFactory = $this->objectManager->get(ContextFactory::class);
if ($this->liveWorkspace === null) {
$this->liveWorkspace = new Workspace('live');
$this->workspaceRepository = $this->objectManager->get(WorkspaceRepository::class);
$this->workspaceRepository->add($this->liveWorkspace);
}
$this->workspaceRepository->add(new Workspace($this->currentTestWorkspaceName, $this->liveWorkspace));
$this->personalContext = $this->contextFactory->create(array('workspaceName' => $this->currentTestWorkspaceName));
$this->liveContext = $this->contextFactory->create(array('workspaceName' => 'live'));
$this->rootNodeInLiveWorkspace = $this->liveContext->getNode('/');
$this->persistenceManager->persistAll();
$this->rootNodeInPersonalWorkspace = $this->personalContext->getNode('/');
}