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

iSetTheNodeNameTo() public method

public iSetTheNodeNameTo ( $name )
    public function iSetTheNodeNameTo($name)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', 'string', escapeshellarg($name)));
        } else {
            $currentNode = $this->iShouldHaveOneNode();
            $currentNode->setName($name);
            $this->objectManager->get(\Neos\Flow\Persistence\PersistenceManagerInterface::class)->persistAll();
            $this->resetNodeInstances();
        }
    }