-
Notifications
You must be signed in to change notification settings - Fork 154
Test coverage: Set OfflineShipping methods on Cart #442
Test coverage: Set OfflineShipping methods on Cart #442
Conversation
...functional/testsuite/Magento/GraphQl/OfflineShipping/SetOfflineShippingMethodsOnCartTest.php
Outdated
Show resolved
Hide resolved
...functional/testsuite/Magento/GraphQl/OfflineShipping/SetOfflineShippingMethodsOnCartTest.php
Outdated
Show resolved
Hide resolved
...functional/testsuite/Magento/GraphQl/OfflineShipping/SetOfflineShippingMethodsOnCartTest.php
Outdated
Show resolved
Hide resolved
...functional/testsuite/Magento/GraphQl/OfflineShipping/SetOfflineShippingMethodsOnCartTest.php
Outdated
Show resolved
Hide resolved
...functional/testsuite/Magento/GraphQl/OfflineShipping/SetOfflineShippingMethodsOnCartTest.php
Outdated
Show resolved
Hide resolved
self::assertEquals($addressesInformation[0]['selected_shipping_method']['carrier_code'], $shippingCarrierCode); | ||
self::assertEquals($addressesInformation[0]['selected_shipping_method']['method_code'], $shippingMethodCode); | ||
self::assertEquals($addressesInformation[0]['selected_shipping_method']['amount'], $shippingAmount); | ||
self::assertEquals($addressesInformation[0]['selected_shipping_method']['label'], $shippingLabel); |
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.
Need to add 'Displayed Error Message' and Sort
fields to the scheme as part of available_shipping_methods
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.
I believe this case is out of scope of the current test since the current test covers setting shipping addresses but not getting available shipping addresses.
I would recommend creating a separate issue for getAvailableShippingMethods coverage.
@naydav I've resolved the mentioned changes. Please, take a look when you have some time. Thank you |
Hi @rogyar, thank you for your contribution! |
Description (*)
This PR introduces test coverage for setting offline shipping methods for the shopping cart.
Fixed Issues (if relevant)