-
Notifications
You must be signed in to change notification settings - Fork 154
GraphQl-662: Test coverage of USPS shipping method #537
Conversation
1. Fix Location of /home/travis/build/magento/graphql-ce/dev/tests/integration/testsuite/Magento/Usps/SetUspsShippingMethodsOnCartTest.php does not match formal namespace: Magento\Usps
1. Test USPS shipping method with sandbox params
@naydav , I've a proposition for you here. On my local environment I've used my USPS sandbox account. May be a good idea to have the appropriate one for Magento test instance. To provide USPS credentials and hide them from the 3rd eyes my proposition is use
where Please let me know your thoughts. Thank you! |
Merge remote-tracking branch 'origin/2.3-develop' into 282-shipping-methods-USPS
dev/tests/api-functional/testsuite/Magento/GraphQl/Usps/SetUspsShippingMethodsOnCartTest.php
Outdated
Show resolved
Hide resolved
Merge remote-tracking branch 'origin/2.3-develop' into 282-shipping-methods-USPS
Merge remote-tracking branch 'origin/2.3-develop' into 282-shipping-methods-USPS
@naydav , ticket is ready for your review. Thank you! |
Merge remote-tracking branch 'origin/2.3-develop' into 282-shipping-methods-USPS
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.
@atwixfirster
As we talk early, need to introduce some mock object instead of 'real caller' object
Our tests should not depend on external system
The best way is creating preference in GraphQLTestModule and replace real object on our internal mock object
Hi @lenaorobei, thank you for the review.
|
Hi @naydav, thank you for the review.
|
- added comment about selected shipping methods
Hi @naydav, thank you for the review. |
Hi @atwixfirster, thank you for your contribution! |
#662
Description (*)
Works with sandbox USPS account.
@naydav , unfortunately I did not find a way how to emulate USPS service without values in the "User ID" and "Password" fields.
On my local instance to verify
Magento\GraphQl\Usps\SetUspsShippingMethodsOnCartTest
::testSetUpsShippingMethod()
test I used my USPS sandbox account.Thank you!