From a2e7896038c1002b83c2ca2eadff551b9f88022b Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Sat, 22 Nov 2014 13:30:27 -0500 Subject: [PATCH] Fix uses, style --- lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php index adcf27775..482041fe6 100644 --- a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php @@ -21,6 +21,7 @@ App::uses('AuthComponent', 'Controller/Component'); App::uses('AclComponent', 'Controller/Component'); App::uses('BaseAuthenticate', 'Controller/Component/Auth'); App::uses('FormAuthenticate', 'Controller/Component/Auth'); +App::uses('CakeEvent', 'Event'); /** * TestFormAuthenticate class @@ -64,6 +65,7 @@ class TestBaseAuthenticate extends BaseAuthenticate { 'username' => 'mark' ); } + } /** @@ -506,7 +508,6 @@ class AuthComponentTest extends CakeTestCase { $auth = $this->Auth->getAuthenticateObject(0); $listener = $this->getMock('AuthEventTestListener'); $auth->afterIdentifyCallable = array($listener, 'listenerFunction'); - App::uses('CakeEvent', 'Event'); $event = new CakeEvent('Auth.afterIdentify', $this->Auth, array('user' => $user)); $listener->expects($this->once())->method('listenerFunction')->with($event);