Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeOperationsTrait::resetNodeInstances PHP Method

resetNodeInstances() public method

Makes sure to reset all node instances which might still be stored in the NodeDataRepository, ContextFactory or NodeFactory.
public resetNodeInstances ( ) : void
return void
    public function resetNodeInstances()
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__);
        } else {
            $this->objectManager->get(\Neos\ContentRepository\Domain\Repository\NodeDataRepository::class)->reset();
            $this->objectManager->get(\Neos\ContentRepository\Domain\Service\ContextFactoryInterface::class)->reset();
            $this->objectManager->get(\Neos\ContentRepository\Domain\Factory\NodeFactory::class)->reset();
        }
    }