/** * @param string $expectedResult * @Given /^I should get (TRUE|FALSE) when asking the node authorization service if removal of the node is granted$/ */ public function iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfRemovalOfTheNodeIsGranted($expectedResult) { if ($this->isolated === true) { $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', 'string', escapeshellarg(trim($expectedResult)))); } else { if ($expectedResult === 'TRUE') { if ($this->nodeAuthorizationService->isGrantedToRemoveNode($this->currentNodes[0]) !== true) { Assert::fail('The node authorization service did not return TRUE!'); } } else { if ($this->nodeAuthorizationService->isGrantedToRemoveNode($this->currentNodes[0]) !== false) { Assert::fail('The node authorization service did not return FALSE!'); } } } }