File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tests/TestCase/Controller/Traits Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1414namespace CakeDC \Users \Test \TestCase \Controller \Traits ;
1515
1616use Cake \Core \Configure ;
17+ use Cake \Event \Event ;
1718use Cake \Http \ServerRequest ;
1819use Cake \ORM \TableRegistry ;
19- use Cake \Event \Event ;
20- use CakeDC \Auth \Controller \Component \OneTimePasswordAuthenticatorComponent ;
2120use CakeDC \Auth \Authentication \AuthenticationService ;
2221use CakeDC \Auth \Authenticator \TwoFactorAuthenticator ;
22+ use CakeDC \Auth \Controller \Component \OneTimePasswordAuthenticatorComponent ;
2323use CakeDC \Users \UsersPlugin ;
2424
2525class OneTimePasswordVerifyTraitTest extends BaseTrait
@@ -297,7 +297,7 @@ public function testVerifySkipEventCheck()
297297 $ userData = [
298298 'id ' => 1 ,
299299 'secret_verified ' => 1 ,
300- 'email ' => 'test@example.com '
300+ 'email ' => 'test@example.com ' ,
301301 ];
302302 $ session = $ this ->_mockSession ([
303303 'temporarySession ' => $ userData ,
@@ -316,14 +316,14 @@ public function testVerifySkipEventCheck()
316316 $ this ->Trait ->expects ($ this ->once ())
317317 ->method ('redirect ' );
318318 $ this ->Trait ->verify ();
319-
319+
320320 $ this ->assertNull (
321- $ session ->read (AuthenticationService::TWO_FACTOR_VERIFY_SESSION_KEY )
321+ $ session ->read (AuthenticationService::TWO_FACTOR_VERIFY_SESSION_KEY ),
322322 );
323323
324324 $ this ->assertEquals (
325325 $ userData ,
326- $ session ->read (TwoFactorAuthenticator::USER_SESSION_KEY )
326+ $ session ->read (TwoFactorAuthenticator::USER_SESSION_KEY ),
327327 );
328328 }
329329}
You can’t perform that action at this time.
0 commit comments