Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeAuthorizationTrait::iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService PHP Method

iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService() public method

public iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode
    public function iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService($table)
    {
        if ($this->isolated === true) {
            $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s', escapeshellarg(\Neos\Flow\Tests\Functional\Command\TableNode::class), 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']);
                }
            }
        }
    }