-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Bundle] Covering the SetAttributeTabBlockObserver for Bundles by Unit Test #26148
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
[Bundle] Covering the SetAttributeTabBlockObserver for Bundles by Unit Test #26148
Conversation
Hi @eduard13. 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.
Just use ObjectManager helper ( \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
) and then everything is fine :-)
->disableOriginalConstructor() | ||
->getMock(); | ||
|
||
$this->observer = new SetAttributeTabBlockObserver( |
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.
Use ObjectManager helper for Unit Tests.
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 👌
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.
Awesome. Thank you for your contribution.
Hi @lbajsarowicz, thank you for the review.
|
QA not applicable |
…undles by Unit Test #26148
Hi @eduard13, thank you for your contribution! |
Description (*)
This PR adds missing unit tests for the following class:
\Magento\Bundle\Observer\SetAttributeTabBlockObserver
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
N/A
Questions or comments
Contribution checklist (*)