PHP Class li3_access\tests\cases\extensions\adapter\security\access\RulesTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: tmaiaroto/li3_access

Public Methods

Method Description
testAdd ( )
testAllowAnyRule ( ) Tests that calls only fail when all rules fail if 'allowAny' is set.
testArrayBasedIpMatching ( )
testAutoUser ( ) Tests that user information is automatically retrieved via the closure in the 'user' config.
testCheck ( )
testCheckNoRules ( ) Test access checking with no passed or defined rules.
testInvalidRule ( ) Tests that checks against invalid rules return an invalid rule array.
testOptionsPassedToRule ( ) Tests that options passed to Rules::check() are passed to each rule doing the checking.
testPassingRules ( ) Tests checking against a list of rules that are passed on the fly.
testPatternBasedIpMatching ( )

Method Details

testAdd() public method

public testAdd ( )

testAllowAnyRule() public method

Tests that calls only fail when all rules fail if 'allowAny' is set.
public testAllowAnyRule ( )

testArrayBasedIpMatching() public method

testAutoUser() public method

Tests that user information is automatically retrieved via the closure in the 'user' config.
public testAutoUser ( )

testCheck() public method

public testCheck ( )

testCheckNoRules() public method

Test access checking with no passed or defined rules.
public testCheckNoRules ( )

testInvalidRule() public method

Tests that checks against invalid rules return an invalid rule array.
public testInvalidRule ( )

testOptionsPassedToRule() public method

Tests that options passed to Rules::check() are passed to each rule doing the checking.

testPassingRules() public method

Tests checking against a list of rules that are passed on the fly.
public testPassingRules ( )

testPatternBasedIpMatching() public method