isGrantedToReadNodeProperty() public method

public isGrantedToReadNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
return boolean
 /**
  * @Given /^I should get (TRUE|FALSE) when asking the node authorization service if getting the "([^"]*)" property is granted$/
  */
 public function iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfGettingThePropertyIsGranted($expectedResult, $propertyName)
 {
     if ($this->isolated === true) {
         $this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg(trim($expectedResult)), 'string', escapeshellarg($propertyName)));
     } else {
         if ($expectedResult === 'TRUE') {
             if ($this->nodeAuthorizationService->isGrantedToReadNodeProperty($this->currentNodes[0], $propertyName) !== true) {
                 Assert::fail('The node authorization service did not return TRUE!');
             }
         } else {
             if ($this->nodeAuthorizationService->isGrantedToReadNodeProperty($this->currentNodes[0], $propertyName) !== false) {
                 Assert::fail('The node authorization service did not return FALSE!');
             }
         }
     }
 }