@@ -321,7 +321,7 @@ public function testValidateResetPasswordLinkTokenExpired()
321321 $ this ->expectException (\Magento \Framework \Exception \State \ExpiredException::class);
322322
323323 $ resetToken = 'lsdj579slkj5987slkj595lkj ' ;
324- $ this ->setResetPasswordData ($ resetToken , '1970-01-01 ' );
324+ $ this ->setResetPasswordData ($ resetToken , '1970-01-01 00:00:00 ' );
325325 $ this ->accountManagement ->validateResetPasswordLinkToken (1 , $ resetToken );
326326 }
327327
@@ -372,7 +372,7 @@ public function testResetPasswordTokenSecondTime()
372372 $ resetToken = 'lsdj579slkj5987slkj595lkj ' ;
373373 $ password = 'new_Password123 ' ;
374374 $ email = 'customer@example.com ' ;
375- $ this ->setResetPasswordData ($ resetToken , 'Y-m-d H:i ' );
375+ $ this ->setResetPasswordData ($ resetToken , 'Y-m-d H:i:s ' );
376376 $ this ->assertTrue ($ this ->accountManagement ->resetPassword ($ email , $ resetToken , $ password ));
377377 $ this ->accountManagement ->resetPassword ($ email , $ resetToken , $ password );
378378 }
@@ -465,7 +465,7 @@ public function testResetPasswordTokenExpired()
465465 $ resetToken = 'lsdj579slkj5987slkj595lkj ' ;
466466 $ password = 'new_Password123 ' ;
467467
468- $ this ->setResetPasswordData ($ resetToken , '1970-01-01 ' );
468+ $ this ->setResetPasswordData ($ resetToken , '1970-01-01 00:00:00 ' );
469469 try {
470470 $ this ->accountManagement ->resetPassword ('customer@example.com ' , $ resetToken , $ password );
471471 $ this ->fail ('Expected exception not thrown. ' );
0 commit comments