|
|
@@ -1045,26 +1045,6 @@ class AuthComponentTest extends TestCase {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * test mapActions loading and delegating to authorize objects.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function testMapActionsDelegation() {
|
|
|
- $MapActionMockAuthorize = $this->getMock(
|
|
|
- 'Cake\Controller\Component\Auth\BaseAuthorize',
|
|
|
- array('authorize', 'mapActions'), array(), '', false
|
|
|
- );
|
|
|
-
|
|
|
- $this->Auth->authorize = array('MapActionMock');
|
|
|
- $this->Auth->setAuthorizeObject(0, $MapActionMockAuthorize);
|
|
|
- $MapActionMockAuthorize->expects($this->once())
|
|
|
- ->method('mapActions')
|
|
|
- ->with(array('create' => array('my_action')));
|
|
|
-
|
|
|
- $this->Auth->mapActions(array('create' => array('my_action')));
|
|
|
- }
|
|
|
-
|
|
|
-/**
|
|
|
* test setting user info to session.
|
|
|
*
|
|
|
* @return void
|