From f9ecace0ff70df87cf8c08de17ee5cf557f8d339 Mon Sep 17 00:00:00 2001 From: Yogesh Suhagiya Date: Wed, 13 Mar 2019 18:52:02 +0530 Subject: [PATCH] Renamed variable and keep name length under 20. --- .../Guest/SetShippingMethodsOnCartTest.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetShippingMethodsOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetShippingMethodsOnCartTest.php index e76974b5290e5..f6444027d0ca3 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetShippingMethodsOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetShippingMethodsOnCartTest.php @@ -100,10 +100,10 @@ public function testShippingMethodWithSimpleProduct() self::assertArrayHasKey('cart', $response['setShippingMethodsOnCart']); self::assertArrayHasKey('shipping_addresses', $response['setShippingMethodsOnCart']['cart']); - $selectedShippingMethod = current($response['setShippingMethodsOnCart']['cart']['shipping_addresses']); - self::assertArrayHasKey('selected_shipping_method', $selectedShippingMethod); - self::assertEquals($carrierCode, $selectedShippingMethod['selected_shipping_method']['carrier_code']); - self::assertEquals($methodCode, $selectedShippingMethod['selected_shipping_method']['method_code']); + $shippingMethod = current($response['setShippingMethodsOnCart']['cart']['shipping_addresses']); + self::assertArrayHasKey('selected_shipping_method', $shippingMethod); + self::assertEquals($carrierCode, $shippingMethod['selected_shipping_method']['carrier_code']); + self::assertEquals($methodCode, $shippingMethod['selected_shipping_method']['method_code']); } /** @@ -264,10 +264,10 @@ public function testSetShippingMethodToGuestCart() self::assertArrayHasKey('cart', $response['setShippingMethodsOnCart']); self::assertArrayHasKey('shipping_addresses', $response['setShippingMethodsOnCart']['cart']); - $selectedShippingMethod = current($response['setShippingMethodsOnCart']['cart']['shipping_addresses']); - self::assertArrayHasKey('selected_shipping_method', $selectedShippingMethod); - self::assertEquals($carrierCode, $selectedShippingMethod['selected_shipping_method']['carrier_code']); - self::assertEquals($methodCode, $selectedShippingMethod['selected_shipping_method']['method_code']); + $shippingMethod = current($response['setShippingMethodsOnCart']['cart']['shipping_addresses']); + self::assertArrayHasKey('selected_shipping_method', $shippingMethod); + self::assertEquals($carrierCode, $shippingMethod['selected_shipping_method']['carrier_code']); + self::assertEquals($methodCode, $shippingMethod['selected_shipping_method']['method_code']); } /** @@ -360,10 +360,10 @@ public function testSetShippingMethodToGuestCartAddress() self::assertArrayHasKey('cart', $response['setShippingMethodsOnCart']); self::assertArrayHasKey('shipping_addresses', $response['setShippingMethodsOnCart']['cart']); - $selectedShippingMethod = current($response['setShippingMethodsOnCart']['cart']['shipping_addresses']); - self::assertArrayHasKey('selected_shipping_method', $selectedShippingMethod); - self::assertEquals($carrierCode, $selectedShippingMethod['selected_shipping_method']['carrier_code']); - self::assertEquals($methodCode, $selectedShippingMethod['selected_shipping_method']['method_code']); + $shippingMethod = current($response['setShippingMethodsOnCart']['cart']['shipping_addresses']); + self::assertArrayHasKey('selected_shipping_method', $shippingMethod); + self::assertEquals($carrierCode, $shippingMethod['selected_shipping_method']['carrier_code']); + self::assertEquals($methodCode, $shippingMethod['selected_shipping_method']['method_code']); } /**