PHP Class Neos\FluidAdaptor\Tests\Unit\ViewHelpers\Security\IfHasRoleViewHelperTest

Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$mockPolicyService Neos\Flow\Security\Policy\PolicyService | PHPUnit_Framework_MockObject_MockObject
$mockSecurityContext Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject
$mockViewHelper Neos\FluidAdaptor\ViewHelpers\Security\IfHasRoleViewHelper | PHPUnit_Framework_MockObject_MockObject

Méthodes publiques

Méthode Description
setUp ( )
viewHelperHandlesPackageKeyAttributeCorrectly ( )
viewHelperRendersThenPartIfHasRoleReturnsTrue ( )
viewHelperUsesSpecifiedAccountForCheck ( )

Méthodes protégées

Méthode Description
getMockControllerContext ( ) : PHPUnit_Framework_MockObject_MockObject Create a mock controllerContext

Method Details

getMockControllerContext() protected méthode

Create a mock controllerContext
protected getMockControllerContext ( ) : PHPUnit_Framework_MockObject_MockObject
Résultat PHPUnit_Framework_MockObject_MockObject

setUp() public méthode

public setUp ( )

viewHelperHandlesPackageKeyAttributeCorrectly() public méthode

viewHelperRendersThenPartIfHasRoleReturnsTrue() public méthode

viewHelperUsesSpecifiedAccountForCheck() public méthode

Property Details

$mockPolicyService protected_oe property

protected PolicyService,Neos\Flow\Security\Policy|PHPUnit_Framework_MockObject_MockObject $mockPolicyService
Résultat Neos\Flow\Security\Policy\PolicyService | PHPUnit_Framework_MockObject_MockObject

$mockSecurityContext protected_oe property

protected Context,Neos\Flow\Security|PHPUnit_Framework_MockObject_MockObject $mockSecurityContext
Résultat Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject

$mockViewHelper protected_oe property

protected IfHasRoleViewHelper,Neos\FluidAdaptor\ViewHelpers\Security|PHPUnit_Framework_MockObject_MockObject $mockViewHelper
Résultat Neos\FluidAdaptor\ViewHelpers\Security\IfHasRoleViewHelper | PHPUnit_Framework_MockObject_MockObject