-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Unit test for \Magento\Captcha\Observer\ResetAttemptForBackendObserver and ResetAttemptForFrontendObserver #26715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…r and \Magento\Captcha\Observer\ResetAttemptForFrontendObserver
|
Hi @karyna-tsymbal-atwix. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
| ResetAttemptForBackendObserver::class, | ||
| ['resLogFactory' => $resLogFactoryMock] | ||
| ); | ||
| $observer->execute($eventObserverMock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the execute method returns a value, it makes sense to add the corresponding assertion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, done
| ResetAttemptForFrontendObserver::class, | ||
| ['resLogFactory' => $resLogFactoryMock] | ||
| ); | ||
| $observer->execute($eventObserverMock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the execute method returns a value, it makes sense to add the corresponding assertion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
Hi @rogyar, thank you for the review. |
|
✔️ QA Passed |
…ackendObserver and ResetAttemptForFrontendObserver #26715
|
Hi @karyna-tsymbal-atwix, thank you for your contribution! |
Description (*)
Covers \Magento\Captcha\Observer\ResetAttemptForBackendObserver and \Magento\Captcha\Observer\ResetAttemptForFrontendObserver with Unit tests.
Contribution checklist (*)