From 6edbda30923e97ed1eb76bec689c6f312c0b3b81 Mon Sep 17 00:00:00 2001 From: Jan Goralski Date: Thu, 15 Sep 2016 15:05:49 +0200 Subject: [PATCH] [Api] Changed shipping method's id to code for revisiting steps --- tests/Controller/CheckoutPaymentApiTest.php | 2 +- tests/Controller/CheckoutShippingApiTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Controller/CheckoutPaymentApiTest.php b/tests/Controller/CheckoutPaymentApiTest.php index 757f11b3f7..c31b37911a 100644 --- a/tests/Controller/CheckoutPaymentApiTest.php +++ b/tests/Controller/CheckoutPaymentApiTest.php @@ -137,7 +137,7 @@ EOT; $orderId = $checkoutData['order1']->getId(); $this->addressOrder($orderId); - $this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId()); + $this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode()); $this->selectOrderPaymentMethod($orderId, $checkoutData['cash_on_delivery']->getId()); $data = diff --git a/tests/Controller/CheckoutShippingApiTest.php b/tests/Controller/CheckoutShippingApiTest.php index 63bc14d009..d3780bd1bc 100644 --- a/tests/Controller/CheckoutShippingApiTest.php +++ b/tests/Controller/CheckoutShippingApiTest.php @@ -140,14 +140,14 @@ EOT; $orderId = $checkoutData['order1']->getId(); $this->addressOrder($orderId); - $this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId()); + $this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode()); $data = <<getId()} + "method": "{$checkoutData['dhl']->getCode()}" } ] } @@ -170,7 +170,7 @@ EOT; $orderId = $checkoutData['order1']->getId(); $this->addressOrder($orderId); - $this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId()); + $this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode()); $this->selectOrderPaymentMethod($orderId, $checkoutData['cash_on_delivery']->getId()); $data = @@ -178,7 +178,7 @@ EOT; { "shipments": [ { - "method": {$checkoutData['dhl']->getId()} + "method": "{$checkoutData['dhl']->getCode()}" } ] }