-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Theme] Covered Unit Test for \Magento\Theme\Controller\Result\JsFooterPlugin #26820
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
[Theme] Covered Unit Test for \Magento\Theme\Controller\Result\JsFooterPlugin #26820
Conversation
Hi @srsathish92. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @VladimirZaets, thank you for the review.
|
@lbajsarowicz yes, I have covered & updated, please review now. |
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.
Please add keys that description for DataProvider.
Then we need to check if everything works as expected.
[ | ||
'content' => [] | ||
], | ||
[ | ||
'content' => NULL | ||
] |
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.
You can replace this with:
'empty_array' => ['content' => []],
'null' => ['content' => NULL]
As a result - when one of them fail - You'll know on which data set it failed (key of dataProvider is added to error message (Test failed with: X))
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.
@lbajsarowicz Thanks for the feedback, I have updated the keys.
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.
Tests passed, thanks for your contribution.
Hi @lbajsarowicz, thank you for the review.
|
✔️ QA Passed |
…Result\JsFooterPlugin #26820
Hi @srsathish92, thank you for your contribution! |
Description (*)
[Theme] Covered Unit Test for \Magento\Theme\Controller\Result\JsFooterPlugin
Manual testing scenarios (*)
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Magento/Theme/Test/Unit/Controller/Result/JsFooterPluginTest.php
Questions or comments
If any please let me know your feedback
Contribution checklist (*)