@@ -59,7 +59,7 @@ public function it_updates_the_encoder_when_the_shop_user_logs_in(): void
5959
6060 $ shopUser =
$ shopUserRepository->
findOneByEmail (
'[email protected] ' );
6161 $ shopUser ->setPlainPassword ('testpassword ' );
62- $ shopUser ->setEncoderName ('sha512 ' );
62+ $ shopUser ->setEncoderName ('argon2i ' );
6363
6464 $ shopUserManager ->persist ($ shopUser );
6565 $ shopUserManager ->flush ();
@@ -73,7 +73,7 @@ public function it_updates_the_encoder_when_the_shop_user_logs_in(): void
7373
7474 Assert::assertSame (200 , $ this ->client ->getResponse ()->getStatusCode ());
7575 Assert::assertSame ('/en_US/ ' , parse_url ($ this ->client ->getCrawler ()->getUri (), \PHP_URL_PATH ));
76- Assert::
assertSame (
'argon2i ' ,
$ shopUserRepository->
findOneByEmail (
'[email protected] ' )->
getEncoderName ());
76+ Assert::
assertSame (
'sha512 ' ,
$ shopUserRepository->
findOneByEmail (
'[email protected] ' )->
getEncoderName ());
7777 }
7878
7979 /** @test */
@@ -87,7 +87,7 @@ public function it_updates_the_encoder_when_the_admin_user_logs_in(): void
8787
8888 $ adminUser =
$ adminUserRepository->
findOneByEmail (
'[email protected] ' );
8989 $ adminUser ->setPlainPassword ('testpassword ' );
90- $ adminUser ->setEncoderName ('sha512 ' );
90+ $ adminUser ->setEncoderName ('argon2i ' );
9191
9292 $ adminUserManager ->persist ($ adminUser );
9393 $ adminUserManager ->flush ();
@@ -101,7 +101,7 @@ public function it_updates_the_encoder_when_the_admin_user_logs_in(): void
101101
102102 Assert::assertSame (200 , $ this ->client ->getResponse ()->getStatusCode ());
103103 Assert::assertSame ('/admin/ ' , parse_url ($ this ->client ->getCrawler ()->getUri (), \PHP_URL_PATH ));
104- Assert::
assertSame (
'argon2i ' ,
$ adminUserRepository->
findOneByEmail (
'[email protected] ' )->
getEncoderName ());
104+ Assert::
assertSame (
'sha512 ' ,
$ adminUserRepository->
findOneByEmail (
'[email protected] ' )->
getEncoderName ());
105105 }
106106
107107 /** @test */
0 commit comments