PHP Class Phalcon\Test\Acl\Factory\MemoryTest

Author: Nemanja Ognjanovic ([email protected])
Inheritance: extends Codeception\TestCase\Test
Datei anzeigen Open project: phalcon/incubator

Protected Properties

Property Type Description
$tester UnitTester UnitTester Object

Public Methods

Method Description
invalidActionProvider ( )
testFactoryShouldCreateMemoryAclObjectFromAclConfigurationWithAllOptions ( )
testFactoryShouldThrowExceptionIfActionsKeyIsMissing ( )
testFactoryShouldThrowExceptionIfDefaultActionIsMissing ( )
testFactoryShouldThrowExceptionIfNonExistentInheritRoleIsSet ( )
testFactoryShouldThrowExceptionIfResourceOptionIsMissing ( )
testFactoryShouldThrowExceptionIfRoleKeyIsMissing ( )
testFactoryShouldThrowExceptionIfWrongMethodIsSet ( )
testFactoryShouldThrowExceptionIfWrongNoActionIsSet ( mixed $action )
testFactoryShouldWorkIfCreatedFromConfigPHPArray ( )

Protected Methods

Method Description
_after ( ) executed after each test
_before ( ) executed before each test
assertAclIsConfiguredAsExpected ( Phalcon\Acl\Adapter\Memory $acl, Phalcon\Config $config )

Method Details

_after() protected method

executed after each test
protected _after ( )

_before() protected method

executed before each test
protected _before ( )

assertAclIsConfiguredAsExpected() protected method

protected assertAclIsConfiguredAsExpected ( Phalcon\Acl\Adapter\Memory $acl, Phalcon\Config $config )
$acl Phalcon\Acl\Adapter\Memory
$config Phalcon\Config

invalidActionProvider() public method

testFactoryShouldCreateMemoryAclObjectFromAclConfigurationWithAllOptions() public method

testFactoryShouldThrowExceptionIfActionsKeyIsMissing() public method

testFactoryShouldThrowExceptionIfDefaultActionIsMissing() public method

testFactoryShouldThrowExceptionIfNonExistentInheritRoleIsSet() public method

testFactoryShouldThrowExceptionIfResourceOptionIsMissing() public method

testFactoryShouldThrowExceptionIfRoleKeyIsMissing() public method

testFactoryShouldThrowExceptionIfWrongMethodIsSet() public method

testFactoryShouldThrowExceptionIfWrongNoActionIsSet() public method

testFactoryShouldWorkIfCreatedFromConfigPHPArray() public method

Property Details

$tester protected_oe property

UnitTester Object
protected UnitTester $tester
return UnitTester