Skip to content

Commit e1c7a63

Browse files
akaashakaash
authored andcommitted
ACQE-5019 | added description on the functions
1 parent 5beb969 commit e1c7a63

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/ForgotPasswordPostTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ private function assertSuccessSessionMessage(string $email): void
190190
}
191191

192192
/**
193+
* Test to check reset password link send after forgot password link is click
194+
*
193195
* @magentoConfigFixture current_store customer/captcha/enable 0
194196
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
195197
* @magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0
@@ -226,6 +228,8 @@ public function testResetLinkSentAfterForgotPassword(): void
226228
}
227229

228230
/**
231+
* Test to check reset password link expired by timeout
232+
*
229233
* @magentoConfigFixture current_store customer/captcha/enable 0
230234
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
231235
* @magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0
@@ -277,6 +281,8 @@ public function testResetLinkExpirationByTimeout(): void
277281
}
278282

279283
/**
284+
* Test to check reset password link expired after forgot password is click
285+
*
280286
* @magentoConfigFixture current_store customer/captcha/enable 0
281287
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
282288
* @magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0
@@ -317,6 +323,8 @@ public function testExpiredResetPasswordLinkAfterForgotPassword(): void
317323
}
318324

319325
/**
326+
* Function to generate random reset password token
327+
*
320328
* @param string $email
321329
* @return array
322330
* @throws AlreadyExistsException
@@ -343,6 +351,8 @@ private function generateResetPasswordToken($email): array
343351
}
344352

345353
/**
354+
* Function to update the value of rp_token_created_at field in customer_entity table.
355+
*
346356
* @param string $email
347357
* @param int $customerId
348358
* @return void
@@ -364,6 +374,8 @@ private function updateResetPasswordCreatedDateAndTime($email, $customerId): voi
364374
}
365375

366376
/**
377+
* Function to click on the reset password link.
378+
*
367379
* @param string $token
368380
* @param int $customerId
369381
* @return void
@@ -376,6 +388,8 @@ private function clickResetPasswordLink($token, $customerId): void
376388
}
377389

378390
/**
391+
* Function to click on forgot password and assert reset link received in the mail
392+
*
379393
* @param string $email
380394
* @return void
381395
* @throws NoSuchEntityException
@@ -429,6 +443,8 @@ private function clickForgotPasswordAndAssertResetLinkReceivedInMail($email): vo
429443
}
430444

431445
/**
446+
* Clears request.
447+
*
432448
* @return void
433449
*/
434450
protected function resetRequest(): void

0 commit comments

Comments
 (0)