Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Renamed variable and keep name length under 20.
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshsuhagiya committed Mar 13, 2019
1 parent 4bdc30e commit f9ecace
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

/**
Expand Down Expand Up @@ -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']);
}

/**
Expand Down Expand Up @@ -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']);
}

/**
Expand Down

0 comments on commit f9ecace

Please sign in to comment.