PHP Class AcAuthorityTest

Inheritance: extends AcTestCase
显示文件 Open project: efficiently/authority-controller

Public Methods

Method Description
setUp ( )
tearDown ( )
testAllowRulesDoNotOverridePriorRules ( ) Adding allow rules do not override prior rules, but instead are logically or'ed
testCanEvaluateRulesOnObject ( )
testCanStoreCurrentUser ( )
testCannotDoAnythingWithoutRules ( ) A user cannot do anything without rules
testDefaultAliasActions ( )
testDenyRuleOverridesPriorRules ( ) Adding deny rule overrides prior rules
testRulesPrecedence ( )

Protected Methods

Method Description
assertCan ( $action, $resource, $resourceValue = null, $authority = null ) Helpers
assertCannot ( $action, $resource, $resourceValue = null, $authority = null )

Method Details

assertCan() protected method

Helpers
protected assertCan ( $action, $resource, $resourceValue = null, $authority = null )

assertCannot() protected method

protected assertCannot ( $action, $resource, $resourceValue = null, $authority = null )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAllowRulesDoNotOverridePriorRules() public method

Adding allow rules do not override prior rules, but instead are logically or'ed

testCanEvaluateRulesOnObject() public method

testCanStoreCurrentUser() public method

testCannotDoAnythingWithoutRules() public method

A user cannot do anything without rules

testDefaultAliasActions() public method

testDenyRuleOverridesPriorRules() public method

Adding deny rule overrides prior rules

testRulesPrecedence() public method

public testRulesPrecedence ( )