Skip to content

Commit f167858

Browse files
committed
MAGETWO-36274: Create /mine API for ShippingMethodManagement
- CR changes
1 parent f3cd41a commit f167858

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

dev/tests/api-functional/testsuite/Magento/Quote/Api/ShippingMethodManagementTest.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ public function testSetMethodForMyCart()
150150
$result = $this->_webApiCall($serviceInfo, $requestData);
151151
$this->assertEquals(true, $result);
152152

153-
/** @var \Magento\Quote\Api\ShippingMethodManagementInterface $ShippingMethodManagementService */
154-
$ShippingMethodManagementService = $this->objectManager->create(
153+
/** @var \Magento\Quote\Api\ShippingMethodManagementInterface $shippingMethodManagementService */
154+
$shippingMethodManagementService = $this->objectManager->create(
155155
'Magento\Quote\Api\ShippingMethodManagementInterface'
156156
);
157-
$shippingMethod = $ShippingMethodManagementService->get($this->quote->getId());
157+
$shippingMethod = $shippingMethodManagementService->get($this->quote->getId());
158158

159159
$this->assertNotNull($shippingMethod);
160160
$this->assertEquals('flatrate', $shippingMethod->getCarrierCode());
@@ -315,12 +315,9 @@ public function testGetListForMyCart()
315315

316316
$result = $this->_webApiCall($serviceInfo, []);
317317
$this->assertNotEmpty($result);
318+
$this->assertCount(1, $result);
318319

319-
/** @var \Magento\Quote\Api\ShippingMethodManagementInterface $ShippingMethodManagementService */
320-
$ShippingMethodManagementService = $this->objectManager->create(
321-
'Magento\Quote\Api\ShippingMethodManagementInterface'
322-
);
323-
$shippingMethod = $ShippingMethodManagementService->get($this->quote->getId());
320+
$shippingMethod = $shippingMethodManagementService->get($this->quote->getId());
324321
$expectedData = [
325322
ShippingMethodInterface::KEY_CARRIER_CODE => $shippingMethod->getCarrierCode(),
326323
ShippingMethodInterface::KEY_METHOD_CODE => $shippingMethod->getMethodCode(),

0 commit comments

Comments
 (0)