PHP Trait Neos\ContentRepository\Tests\Behavior\Features\Bootstrap\NodeAuthorizationTrait

Note that this trait requires the following properties to be available: * $this->nodeAuthorizationService * $this->nodeTypeManager Note: This trait expects the IsolatedBehatStepsTrait and the NodeOperationsTrait to be available!
Datei anzeigen Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$nodeAuthorizationService Neos\ContentRepository\Service\AuthorizationService
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager

Public Methods

Method Description
iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfCreatingAChildNodeOfTypeIsGranted ( string $expectedResult, string $nodeName, string $nodeTypeName )
iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfGettingThePropertyIsGranted ( $expectedResult, $propertyName )
iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfRemovalOfTheNodeIsGranted ( string $expectedResult )
iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfSettingThePropertyIsGranted ( $expectedResult, $propertyName )
iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService ( Behat\Gherkin\Node\TableNode $table )
iShouldGetTheFollowingListOfDeniedNodeTypesForThisNodeFromTheNodeAuthorizationService ( $table )
iShouldGetTheListOfAllAvailableNodeTypesAsDeniedNodeTypesForThisNodeFromTheNodeAuthorizationService ( )
iShouldGetTrueWhenAskingTheNodeAuthorizationServiceIfEditingThePropertyIsGranted ( $expectedResult, $propertyName )
iShouldGetTrueWhenAskingTheNodeAuthorizationServiceIfEditingThisNodeIsGranted ( string $expectedResult )
iShouldNotBeGrantedToCreateANewChildNodeOfType ( string $not, string $nodeName, string $nodeType )
iShouldNotBeGrantedToGetTheProperty ( $not, $propertyName )
iShouldNotBeGrantedToRemoveTheNode ( string $not = '' )
iShouldNotBeGrantedToSetAnyOfTheNodesAttributes ( string $not = '' )
iShouldNotBeGrantedToSetThePropertyTo ( $not, $propertyName, $value )

Method Details

iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfCreatingAChildNodeOfTypeIsGranted() public method

public iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfCreatingAChildNodeOfTypeIsGranted ( string $expectedResult, string $nodeName, string $nodeTypeName )
$expectedResult string
$nodeName string
$nodeTypeName string

iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfGettingThePropertyIsGranted() public method

iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfRemovalOfTheNodeIsGranted() public method

iShouldGetFalseWhenAskingTheNodeAuthorizationServiceIfSettingThePropertyIsGranted() public method

iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService() public method

public iShouldGetTheFollowingListOfDeniedNodePropertiesFromTheNodeAuthorizationService ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

iShouldGetTheFollowingListOfDeniedNodeTypesForThisNodeFromTheNodeAuthorizationService() public method

iShouldGetTheListOfAllAvailableNodeTypesAsDeniedNodeTypesForThisNodeFromTheNodeAuthorizationService() public method

iShouldGetTrueWhenAskingTheNodeAuthorizationServiceIfEditingThePropertyIsGranted() public method

iShouldGetTrueWhenAskingTheNodeAuthorizationServiceIfEditingThisNodeIsGranted() public method

iShouldNotBeGrantedToCreateANewChildNodeOfType() public method

public iShouldNotBeGrantedToCreateANewChildNodeOfType ( string $not, string $nodeName, string $nodeType )
$not string
$nodeName string
$nodeType string

iShouldNotBeGrantedToGetTheProperty() public method

public iShouldNotBeGrantedToGetTheProperty ( $not, $propertyName )

iShouldNotBeGrantedToRemoveTheNode() public method

iShouldNotBeGrantedToSetAnyOfTheNodesAttributes() public method

iShouldNotBeGrantedToSetThePropertyTo() public method

public iShouldNotBeGrantedToSetThePropertyTo ( $not, $propertyName, $value )

Property Details

$nodeAuthorizationService protected_oe property

protected AuthorizationService,Neos\ContentRepository\Service $nodeAuthorizationService
return Neos\ContentRepository\Service\AuthorizationService

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager