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

iShouldBeAbleToRenameTheNodeTo() public method

public iShouldBeAbleToRenameTheNodeTo ( $not, $newName )
    public function iShouldBeAbleToRenameTheNodeTo($not, $newName)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg($not), 'string', escapeshellarg($newName)));
        } else {
            try {
                $this->iRenameTheNodeTo($newName);
            } catch (\Exception $exception) {
            }
            if (!empty($not) && !isset($exception)) {
                Assert::fail('Expected an exception while renaming the node');
            } elseif (empty($not) && isset($exception)) {
                throw $exception;
            }
        }
    }