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

Commit

Permalink
graphQl-579: added test coverage for setting disabled shipping method
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Boyko committed Apr 10, 2019
1 parent ab188bc commit 457c522
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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

0 comments on commit 457c522

Please sign in to comment.