public function iShouldNotBeGrantedToRemoveTheNode($not = '')
{
if ($this->isolated === true) {
$this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', 'string', escapeshellarg(trim($not))));
} else {
try {
$this->currentNodes[0]->remove();
if ($not === 'not') {
Assert::fail('Name should not be settable on the current node!');
}
} catch (\Neos\Flow\Security\Exception\AccessDeniedException $exception) {
if ($not !== 'not') {
throw $exception;
}
}
}
}