Skip to content

Commit 1e821dd

Browse files
committed
Corrected Code Styles
1 parent ab4e736 commit 1e821dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/AddSimpleProductWithCustomOptionsToCartTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public function testAddSimpleProductWithDateOption()
127127
self::assertArrayHasKey('items', $response['addSimpleProductsToCart']['cart']);
128128
self::assertCount(1, $response['addSimpleProductsToCart']['cart']);
129129

130-
$customizableOptionOutput = $response['addSimpleProductsToCart']['cart']['items'][0]['customizable_options'][0]['values'][0]['value'];
130+
$cartItem = $response['addSimpleProductsToCart']['cart']['items'][0];
131+
$customizableOptionOutput = $cartItem['customizable_options'][0]['values'][0]['value'];
131132
$expectedValue = date("M d, Y", strtotime($customOptionsValues[0]['value_string']));
132133

133134
self::assertEquals($expectedValue, $customizableOptionOutput);

0 commit comments

Comments
 (0)