PHP Class Acl\Test\TestCase\Auth\CrudAuthorizeTest

Inheritance: extends Cake\TestSuite\TestCase
Show file Open project: cakephp/acl

Public Methods

Method Description
setUp ( ) : void setup
testAuthorizeCheckFailure ( ) : void test check() failing
testAuthorizeCheckSuccess ( ) : void test check() passing
testAuthorizeNoMappedAction ( ) : void test authorize() without a mapped action, ensure an error is generated.
testMapActionsGet ( ) : void test getting actionMap
testMapActionsSet ( ) : void test adding into mapActions

Protected Methods

Method Description
_mockAcl ( ) : void setup the mock acl.

Method Details

_mockAcl() protected method

setup the mock acl.
protected _mockAcl ( ) : void
return void

setUp() public method

setup
public setUp ( ) : void
return void

testAuthorizeCheckFailure() public method

test check() failing
public testAuthorizeCheckFailure ( ) : void
return void

testAuthorizeCheckSuccess() public method

test check() passing
public testAuthorizeCheckSuccess ( ) : void
return void

testAuthorizeNoMappedAction() public method

test authorize() without a mapped action, ensure an error is generated.
public testAuthorizeNoMappedAction ( ) : void
return void

testMapActionsGet() public method

test getting actionMap
public testMapActionsGet ( ) : void
return void

testMapActionsSet() public method

test adding into mapActions
public testMapActionsSet ( ) : void
return void