Skip to content

Commit

Permalink
Update / fix test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 29, 2014
1 parent c3038f7 commit 49a9147
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
1 change: 1 addition & 0 deletions tests/TestCase/Auth/WeakPasswordHasherTest.php
Expand Up @@ -15,6 +15,7 @@
namespace Cake\Test\TestCase\Auth;

use Cake\Auth\WeakPasswordHasher;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;

/**
Expand Down
20 changes: 0 additions & 20 deletions tests/TestCase/Controller/Component/AuthComponentTest.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit 49a9147

Please sign in to comment.