@@ -321,7 +321,7 @@ public function testValidateResetPasswordLinkTokenExpired()
321
321
$ this ->expectException (\Magento \Framework \Exception \State \ExpiredException::class);
322
322
323
323
$ resetToken = 'lsdj579slkj5987slkj595lkj ' ;
324
- $ this ->setResetPasswordData ($ resetToken , '1970-01-01 ' );
324
+ $ this ->setResetPasswordData ($ resetToken , '1970-01-01 00:00:00 ' );
325
325
$ this ->accountManagement ->validateResetPasswordLinkToken (1 , $ resetToken );
326
326
}
327
327
@@ -372,7 +372,7 @@ public function testResetPasswordTokenSecondTime()
372
372
$ resetToken = 'lsdj579slkj5987slkj595lkj ' ;
373
373
$ password = 'new_Password123 ' ;
374
374
$ email = 'customer@example.com ' ;
375
- $ this ->setResetPasswordData ($ resetToken , 'Y-m-d H:i ' );
375
+ $ this ->setResetPasswordData ($ resetToken , 'Y-m-d H:i:s ' );
376
376
$ this ->assertTrue ($ this ->accountManagement ->resetPassword ($ email , $ resetToken , $ password ));
377
377
$ this ->accountManagement ->resetPassword ($ email , $ resetToken , $ password );
378
378
}
@@ -465,7 +465,7 @@ public function testResetPasswordTokenExpired()
465
465
$ resetToken = 'lsdj579slkj5987slkj595lkj ' ;
466
466
$ password = 'new_Password123 ' ;
467
467
468
- $ this ->setResetPasswordData ($ resetToken , '1970-01-01 ' );
468
+ $ this ->setResetPasswordData ($ resetToken , '1970-01-01 00:00:00 ' );
469
469
try {
470
470
$ this ->accountManagement ->resetPassword ('customer@example.com ' , $ resetToken , $ password );
471
471
$ this ->fail ('Expected exception not thrown. ' );
0 commit comments