Neos\ContentRepository\Tests\Functional\Domain\NodeDataExportServiceTest::setUpRootNodeAndRepository PHP Метод

setUpRootNodeAndRepository() защищенный Метод

protected setUpRootNodeAndRepository ( ) : void
Результат void
    protected function setUpRootNodeAndRepository()
    {
        $this->contextFactory = $this->objectManager->get(ContextFactory::class);
        $this->context = $this->contextFactory->create(array('workspaceName' => 'live'));
        $this->nodeDataRepository = $this->objectManager->get(NodeDataRepository::class);
        $this->workspaceRepository = $this->objectManager->get(WorkspaceRepository::class);
        $this->workspaceRepository->add(new Workspace('live'));
        $this->nodeTypeManager = $this->objectManager->get(NodeTypeManager::class);
        $this->rootNode = $this->context->getNode('/');
        $this->persistenceManager->persistAll();
    }