PHP Class Phalcon\Test\Unit\Acl\Adapter\MemoryTest

Author: Andres Gutierrez ([email protected])
Author: Nikolaos Dimopoulos ([email protected])
Inheritance: extends Phalcon\Test\Module\UnitTest
Show file Open project: phalcon/cphalcon

Public Methods

Method Description
testAclAddResourceExists ( ) Tests the addResource
testAclAddRoleExists ( ) Tests the addRole
testAclAddRoleTwiceByKeyReturnsFalse ( ) Tests the addRole for the same role twice by key
testAclAddRoleTwiceReturnsFalse ( ) Tests the addRole for the same role twice
testAclAllowFunction ( ) Tests function in Acl Allow Method
testAclAllowFunctionNoArguments ( ) Tests function in Acl Allow Method without arguments
testAclAllowFunctionNoArgumentsWithWarning ( ) Tests function in Acl Allow Method without arguments
testAclConstants ( ) Tests the ACL constants
testAclDefaultAction ( ) Tests the setDefaultAction
testAclIsRoleWithWrongKeyReturnsFalse ( ) Tests the isRole with wrong keyword
testAclNegationOfInheritedRoles ( ) Tests negation of inherited roles
testAclObjects ( ) Tests the ACL objects
testAclObjectsWithDefaultAction ( ) Tests the ACL objects default action
testAclResourceName ( ) Tests the resource name
testAclResourcesWithNumericValues ( ) Tests ACL Resources with numeric values
testAclRoleName ( ) Tests the role name
testAclSerialize ( ) Tests serializing the ACL
testAclWildcardAllowDeny ( ) Tests the wildcard allow/deny
testIssue12004 ( ) Tests function in Acl Allow Method
testWildCardLastRole ( ) Tests acl with adding new rule for role after adding wildcard rule
testWildCardSecondTime ( ) Tests adding wildcard rule second time

Method Details

testAclAddResourceExists() public method

Tests the addResource
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclAddRoleExists() public method

Tests the addRole
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclAddRoleTwiceByKeyReturnsFalse() public method

Tests the addRole for the same role twice by key
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclAddRoleTwiceReturnsFalse() public method

Tests the addRole for the same role twice
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclAllowFunction() public method

Tests function in Acl Allow Method
Since: 2015-12-16
Author: Wojciech Slawski ([email protected])

testAclAllowFunctionNoArguments() public method

Tests function in Acl Allow Method without arguments
Since: 2016-06-05
Author: Wojciech Slawski ([email protected])

testAclAllowFunctionNoArgumentsWithWarning() public method

Tests function in Acl Allow Method without arguments
Since: 2016-06-05
Author: Wojciech Slawski ([email protected])

testAclConstants() public method

Tests the ACL constants
Since: 2014-10-03
Author: Nikolaos Dimopoulos ([email protected])
public testAclConstants ( )

testAclDefaultAction() public method

Tests the setDefaultAction
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclIsRoleWithWrongKeyReturnsFalse() public method

Tests the isRole with wrong keyword
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclNegationOfInheritedRoles() public method

Tests negation of inherited roles
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclObjects() public method

Tests the ACL objects
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])
public testAclObjects ( )

testAclObjectsWithDefaultAction() public method

Tests the ACL objects default action
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclResourceName() public method

Tests the resource name
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])
public testAclResourceName ( )

testAclResourcesWithNumericValues() public method

Tests ACL Resources with numeric values
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testAclRoleName() public method

Tests the role name
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])
public testAclRoleName ( )

testAclSerialize() public method

Tests serializing the ACL
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])
public testAclSerialize ( )

testAclWildcardAllowDeny() public method

Tests the wildcard allow/deny
Since: 2014-10-04
Author: Nikolaos Dimopoulos ([email protected])

testIssue12004() public method

Tests function in Acl Allow Method
Since: 2016-07-22
Author: Wojciech Slawski ([email protected])
public testIssue12004 ( )

testWildCardLastRole() public method

Tests acl with adding new rule for role after adding wildcard rule
Since: 2016-10-01
Author: Wojciech Slawski ([email protected])

testWildCardSecondTime() public method

Tests adding wildcard rule second time
Since: 2016-10-01
Author: Wojciech Slawski ([email protected])