@@ -330,7 +330,7 @@ public function testLoginWithWrongEmail(): void
330330 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
331331
332332 $ this ->assertFalse ($ status ->toBool ());
333- $ this ->assertEquals (LoginStatus::INVALID_CREDENTIALS , $ status );
333+ $ this ->assertEquals (LoginStatus::InvalidCredentials , $ status );
334334 }
335335
336336 /**
@@ -351,7 +351,7 @@ public function testLoginWithWrongPassword(): void
351351 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
352352
353353 $ this ->assertFalse ($ status ->toBool ());
354- $ this ->assertEquals (LoginStatus::INVALID_CREDENTIALS , $ status );
354+ $ this ->assertEquals (LoginStatus::InvalidCredentials , $ status );
355355 }
356356
357357 /**
@@ -374,7 +374,7 @@ public function testLoginForNonActivatedUser(): void
374374 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
375375
376376 $ this ->assertFalse ($ status ->toBool ());
377- $ this ->assertEquals (LoginStatus::NOT_ACTIVATED , $ status );
377+ $ this ->assertEquals (LoginStatus::NotActivated , $ status );
378378 }
379379
380380 /**
@@ -399,7 +399,7 @@ public function testLoginForBannedUser(): void
399399 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
400400
401401 $ this ->assertFalse ($ status ->toBool ());
402- $ this ->assertEquals (LoginStatus::BANNED , $ status );
402+ $ this ->assertEquals (LoginStatus::Banned , $ status );
403403 }
404404
405405 /**
@@ -434,7 +434,7 @@ public function testSuccessfulLogin(): void
434434 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
435435
436436 $ this ->assertTrue ($ status ->toBool ());
437- $ this ->assertEquals (LoginStatus::OK , $ status );
437+ $ this ->assertEquals (LoginStatus::Ok , $ status );
438438 }
439439
440440 /**
@@ -621,7 +621,7 @@ public function testLoginWithWrongPasswordAndThrottling(): void
621621 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
622622
623623 $ this ->assertFalse ($ status ->toBool ());
624- $ this ->assertEquals (LoginStatus::INVALID_CREDENTIALS , $ status );
624+ $ this ->assertEquals (LoginStatus::InvalidCredentials , $ status );
625625 }
626626
627627 /**
@@ -682,7 +682,7 @@ public function testLoginWithLockedAccount(): void
682682 $ status = $ adapter ->login ('foo@example.org ' , 'password ' );
683683
684684 $ this ->assertFalse ($ status ->toBool ());
685- $ this ->assertEquals (LoginStatus::LOCKED , $ status );
685+ $ this ->assertEquals (LoginStatus::Locked , $ status );
686686 }
687687
688688 /**
@@ -715,7 +715,7 @@ public function testBasicAuth(): void
715715
716716 $ adapter ->shouldReceive ('isLoggedIn ' )->once ()->andReturn (false );
717717
718- $ adapter ->shouldReceive ('login ' )->once ()->with (null , null )->andReturn (LoginStatus::INVALID_CREDENTIALS );
718+ $ adapter ->shouldReceive ('login ' )->once ()->with (null , null )->andReturn (LoginStatus::InvalidCredentials );
719719
720720 $ this ->assertFalse ($ adapter ->basicAuth ());
721721 }
@@ -752,7 +752,7 @@ public function testBasicAuthWithClear(): void
752752
753753 $ adapter ->shouldReceive ('isLoggedIn ' )->once ()->andReturn (false );
754754
755- $ adapter ->shouldReceive ('login ' )->once ()->with (null , null )->andReturn (LoginStatus::INVALID_CREDENTIALS );
755+ $ adapter ->shouldReceive ('login ' )->once ()->with (null , null )->andReturn (LoginStatus::InvalidCredentials );
756756
757757 $ this ->assertFalse ($ adapter ->basicAuth (true ));
758758 }
@@ -790,7 +790,7 @@ public function testBasicAuthLoggingIn(): void
790790
791791 $ adapter ->shouldReceive ('isLoggedIn ' )->once ()->andReturn (false );
792792
793- $ adapter ->shouldReceive ('login ' )->once ()->with ('foo@example.org ' , 'password ' )->andReturn (LoginStatus::OK );
793+ $ adapter ->shouldReceive ('login ' )->once ()->with ('foo@example.org ' , 'password ' )->andReturn (LoginStatus::Ok );
794794
795795 $ this ->assertTrue ($ adapter ->basicAuth ());
796796 }
0 commit comments