@@ -190,6 +190,8 @@ private function assertSuccessSessionMessage(string $email): void
190
190
}
191
191
192
192
/**
193
+ * Test to check reset password link send after forgot password link is click
194
+ *
193
195
* @magentoConfigFixture current_store customer/captcha/enable 0
194
196
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
195
197
* @magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0
@@ -226,6 +228,8 @@ public function testResetLinkSentAfterForgotPassword(): void
226
228
}
227
229
228
230
/**
231
+ * Test to check reset password link expired by timeout
232
+ *
229
233
* @magentoConfigFixture current_store customer/captcha/enable 0
230
234
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
231
235
* @magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0
@@ -277,6 +281,8 @@ public function testResetLinkExpirationByTimeout(): void
277
281
}
278
282
279
283
/**
284
+ * Test to check reset password link expired after forgot password is click
285
+ *
280
286
* @magentoConfigFixture current_store customer/captcha/enable 0
281
287
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
282
288
* @magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0
@@ -317,6 +323,8 @@ public function testExpiredResetPasswordLinkAfterForgotPassword(): void
317
323
}
318
324
319
325
/**
326
+ * Function to generate random reset password token
327
+ *
320
328
* @param string $email
321
329
* @return array
322
330
* @throws AlreadyExistsException
@@ -343,6 +351,8 @@ private function generateResetPasswordToken($email): array
343
351
}
344
352
345
353
/**
354
+ * Function to update the value of rp_token_created_at field in customer_entity table.
355
+ *
346
356
* @param string $email
347
357
* @param int $customerId
348
358
* @return void
@@ -364,6 +374,8 @@ private function updateResetPasswordCreatedDateAndTime($email, $customerId): voi
364
374
}
365
375
366
376
/**
377
+ * Function to click on the reset password link.
378
+ *
367
379
* @param string $token
368
380
* @param int $customerId
369
381
* @return void
@@ -376,6 +388,8 @@ private function clickResetPasswordLink($token, $customerId): void
376
388
}
377
389
378
390
/**
391
+ * Function to click on forgot password and assert reset link received in the mail
392
+ *
379
393
* @param string $email
380
394
* @return void
381
395
* @throws NoSuchEntityException
@@ -429,6 +443,8 @@ private function clickForgotPasswordAndAssertResetLinkReceivedInMail($email): vo
429
443
}
430
444
431
445
/**
446
+ * Clears request.
447
+ *
432
448
* @return void
433
449
*/
434
450
protected function resetRequest (): void
0 commit comments