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

graphQl-579: added test coverage for setting disabled shipping method #582

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ public function dataProviderSetShippingMethodWithWrongParameters(): array
}]',
'Could not find a cart with ID "non_existent_masked_id"'
],
'disabled_shipping_method' => [
'cart_id: "cart_id_value", shipping_methods: [{
cart_address_id: cart_address_id_value
carrier_code: "freeshipping"
method_code: "freeshipping"
}]',
'Carrier with such method not found: freeshipping, freeshipping'
]
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ public function dataProviderSetShippingMethodWithWrongParameters(): array
}]',
'Could not find a cart with ID "non_existent_masked_id"'
],
'disabled_shipping_method' => [
'cart_id: "cart_id_value", shipping_methods: [{
cart_address_id: cart_address_id_value
carrier_code: "freeshipping"
method_code: "freeshipping"
}]',
'Carrier with such method not found: freeshipping, freeshipping'
],
];
}

Expand Down