protected function saveNodesAndTearDownRootNodeAndRepository() { if ($this->nodeDataRepository !== NULL) { $this->nodeDataRepository->flushNodeRegistry(); } /** @var \TYPO3\TYPO3CR\Domain\Factory\NodeFactory $nodeFactory */ $nodeFactory = $this->objectManager->get('TYPO3\\TYPO3CR\\Domain\\Factory\\NodeFactory'); $nodeFactory->reset(); $this->contextFactory->reset(); $this->persistenceManager->persistAll(); $this->persistenceManager->clearState(); $this->nodeDataRepository = NULL; $this->rootNode = NULL; }
protected function saveNodesAndTearDownRootNodeAndRepository() { if ($this->nodeDataRepository !== null) { $this->nodeDataRepository->flushNodeRegistry(); } /** @var NodeFactory $nodeFactory */ $nodeFactory = $this->objectManager->get(NodeFactory::class); $nodeFactory->reset(); $this->contextFactory->reset(); $this->persistenceManager->persistAll(); $this->persistenceManager->clearState(); $this->nodeDataRepository = null; $this->rootNode = null; }