-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Sitemap Observer Unit Test improvement: Expect email notification to send, and simplify setup a bit. #27448
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
Sitemap Observer Unit Test improvement: Expect email notification to send, and simplify setup a bit. #27448
Conversation
Hi @evktalo. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
Thank you for your contribution!
Hi @edenduong, thank you for the review.
|
✔️ QA Passed |
@magento run Functional Tests B2B, Functional Tests CE |
Fixed PHPUnit_Framework_MockObject_MockObject usages
…ification to send, and simplify setup a bit. #27448
Hi @evktalo, thank you for your contribution! |
Description (*)
Add an expect for the emailNotification's sendErrors method. This makes the test match its title (testScheduledGenerateSitemapsSendsExceptionEmail) better.
Also try to be more consistent when calling PHPUnit's TestCase's mock creation functions in setUp; favour createMock.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)