Skip to content

Commit

Permalink
Corrected Mutation Query for SetShippingMethodsOnCartTest
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshsuhagiya committed Mar 12, 2019
1 parent 9d231d1 commit 4f19d03
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,29 +113,28 @@ public function testSetMultipleShippingMethods()
* @param string $maskedQuoteId
* @param string $shippingMethodCode
* @param string $shippingCarrierCode
* @param string $shippingAddressId
* @param int $shippingAddressId
* @return string
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private function prepareMutationQuery(
string $maskedQuoteId,
string $shippingMethodCode,
string $shippingCarrierCode,
string $shippingAddressId
int $shippingAddressId
) : string {
return <<<QUERY
mutation {
setShippingMethodsOnCart(input:
{
cart_id: "$maskedQuoteId",
shipping_addresses: [{
shipping_methods: [{
cart_address_id: $shippingAddressId
shipping_method: {
method_code: "$shippingMethodCode"
carrier_code: "$shippingCarrierCode"
}
carrier_code: "$shippingCarrierCode"
method_code: "$shippingMethodCode"
}]
}) {
}) {
cart {
shipping_addresses {
selected_shipping_method {
Expand Down

0 comments on commit 4f19d03

Please sign in to comment.