mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Move App::uses(), rename helper class to avoid conflict
This commit is contained in:
parent
43413f029e
commit
d7b353dcf9
1 changed files with 3 additions and 3 deletions
|
@ -20,6 +20,7 @@ App::uses('Controller', 'Controller');
|
|||
App::uses('AuthComponent', 'Controller/Component');
|
||||
App::uses('AclComponent', 'Controller/Component');
|
||||
App::uses('FormAuthenticate', 'Controller/Component/Auth');
|
||||
App::uses('CakeEvent', 'Event');
|
||||
|
||||
/**
|
||||
* TestAuthComponent class
|
||||
|
@ -271,7 +272,7 @@ class AjaxAuthController extends Controller {
|
|||
*
|
||||
* @package Cake.Test.Case.Event
|
||||
*/
|
||||
class CakeEventTestListener {
|
||||
class AuthEventTestListener {
|
||||
|
||||
public $callStack = array();
|
||||
|
||||
|
@ -426,9 +427,8 @@ class AuthComponentTest extends CakeTestCase {
|
|||
->method('renew');
|
||||
|
||||
$manager = $this->Controller->getEventManager();
|
||||
$listener = $this->getMock('CakeEventTestListener');
|
||||
$listener = $this->getMock('AuthEventTestListener');
|
||||
$manager->attach(array($listener, 'listenerFunction'), 'Auth.afterIdentify');
|
||||
App::uses('CakeEvent', 'Event');
|
||||
$event = new CakeEvent('Auth.afterIdentify', $this->Auth, array('user' => $user));
|
||||
$listener->expects($this->once())->method('listenerFunction')->with($event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue