/** * @param TableNode $table * @Then /^I should get the following list of denied node properties from the node authorization service:$/ */ public function iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService($table) { if ($this->isolated === true) { $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', escapeshellarg('TYPO3\\Flow\\Tests\\Functional\\Command\\TableNode'), escapeshellarg(json_encode($table->getHash())))); } else { $rows = $table->getHash(); $deniedPropertyNames = $this->nodeAuthorizationService->getDeniedNodePropertiesForEditing($this->currentNodes[0]); if (count($rows) !== count($deniedPropertyNames)) { Assert::fail('The node authorization service did not return the expected amount of node property names! Got: ' . implode(', ', $deniedPropertyNames)); } foreach ($rows as $row) { if (in_array($row['propertyName'], $deniedPropertyNames) === false) { Assert::fail('The following property name has not been returned by the node authorization service: ' . $row['propertyName']); } } } }