Skip to content
Permalink
Browse files

Update / fix test cases.

  • Loading branch information...
ADmad committed Aug 29, 2014
1 parent c3038f7 commit 49a9147a78ca332ed6a4effd2c18fbae34c341dc
@@ -15,6 +15,7 @@
namespace Cake\Test\TestCase\Auth;
use Cake\Auth\WeakPasswordHasher;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;
/**
@@ -1044,26 +1044,6 @@ public function testLogoutTrigger() {
$this->Auth->logout();
}
/**
* 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.
*

0 comments on commit 49a9147

Please sign in to comment.
You can’t perform that action at this time.