@@ -150,11 +150,11 @@ public function testSetMethodForMyCart()
150
150
$ result = $ this ->_webApiCall ($ serviceInfo , $ requestData );
151
151
$ this ->assertEquals (true , $ result );
152
152
153
- /** @var \Magento\Quote\Api\ShippingMethodManagementInterface $ShippingMethodManagementService */
154
- $ ShippingMethodManagementService = $ this ->objectManager ->create (
153
+ /** @var \Magento\Quote\Api\ShippingMethodManagementInterface $shippingMethodManagementService */
154
+ $ shippingMethodManagementService = $ this ->objectManager ->create (
155
155
'Magento\Quote\Api\ShippingMethodManagementInterface '
156
156
);
157
- $ shippingMethod = $ ShippingMethodManagementService ->get ($ this ->quote ->getId ());
157
+ $ shippingMethod = $ shippingMethodManagementService ->get ($ this ->quote ->getId ());
158
158
159
159
$ this ->assertNotNull ($ shippingMethod );
160
160
$ this ->assertEquals ('flatrate ' , $ shippingMethod ->getCarrierCode ());
@@ -315,12 +315,9 @@ public function testGetListForMyCart()
315
315
316
316
$ result = $ this ->_webApiCall ($ serviceInfo , []);
317
317
$ this ->assertNotEmpty ($ result );
318
+ $ this ->assertCount (1 , $ result );
318
319
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 ());
324
321
$ expectedData = [
325
322
ShippingMethodInterface::KEY_CARRIER_CODE => $ shippingMethod ->getCarrierCode (),
326
323
ShippingMethodInterface::KEY_METHOD_CODE => $ shippingMethod ->getMethodCode (),
0 commit comments