File tree Expand file tree Collapse file tree
Unit/Authentication/TwoFactorAuth/Infrastructure/Repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626class UserTest extends IntegrationTestCase
2727{
28- // Fixture users from tests/Fixtures/testdata_ce.sql (password: useruser)
2928 private const OTP_USER_NAME = 'user@oxid-esales.com ' ;
3029 private const OTP_USER_PASSWORD = 'useruser ' ;
3130
Original file line number Diff line number Diff line change @@ -153,9 +153,10 @@ public function testResetCodeFieldsClearsOtpData(): void
153153 $ userModelSpy = $ this ->createMock (User::class);
154154 $ userModelSpy ->expects ($ this ->once ())->method ('load ' )->with ($ userId = uniqid ());
155155 $ userModelSpy ->expects ($ this ->once ())->method ('assign ' )->with ([
156- 'OESMOTPCODE ' => '' ,
157- 'OESMOTPEXPTIME ' => 0 ,
156+ 'OESMOTPCODE ' => null ,
157+ 'OESMOTPEXPTIME ' => null ,
158158 'OESMOTPATTEMPTS ' => 0 ,
159+ 'OESMOTPLASTSENT ' => null
159160 ]);
160161 $ userModelSpy ->expects ($ this ->once ())->method ('save ' );
161162
You can’t perform that action at this time.
0 commit comments