-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Covered Magento\Checkout\Model\Cart\CollectQuote by Unit Test #16271
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
Covered Magento\Checkout\Model\Cart\CollectQuote by Unit Test #16271
Conversation
Hi @eduard13. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
); | ||
$this->addressRepositoryMock = $this->createMock(AddressRepositoryInterface::class); | ||
$this->estimateAddressMock = $this->createMock(EstimateAddressInterface::class); | ||
$this->estimateAddressFactoryMock = $this->getMockBuilder(EstimateAddressInterfaceFactory::class) |
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 simplify this part of the code by using createPartialMock
instead of the chain with disableOriginalConstructor
and other methods.
Hi @eduard13. Thank you for your contribution. Please, make the minor improvements mentioned in the review.
|
Hi @rogyar, thank you for suggestions, I've updated the Unit Test regarding your recommendations. |
Hi @rogyar, thank you for the review. |
Hi @eduard13. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Description
This PR adds an unit test for \Magento\Checkout\Model\Cart\CollectQuote class.
Fixed Issues (if relevant)
N/A
Manual testing scenarios
N/A
Contribution checklist