Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Test coverage: Set OfflineShipping methods on Cart #442

Merged
merged 8 commits into from
Mar 13, 2019

Conversation

rogyar
Copy link
Contributor

@rogyar rogyar commented Mar 6, 2019

Description (*)

This PR introduces test coverage for setting offline shipping methods for the shopping cart.

Fixed Issues (if relevant)

  1. Test coverage: Set OfflineShipping methods on Cart #424 : Test coverage: Set OfflineShipping methods on Cart

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);
Copy link
Contributor

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

Copy link
Contributor Author

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.

@rogyar
Copy link
Contributor Author

rogyar commented Mar 8, 2019

@naydav I've resolved the mentioned changes. Please, take a look when you have some time. Thank you

@ghost
Copy link

ghost commented Mar 13, 2019

Hi @rogyar, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants