Skip to content

Commit

Permalink
Corrected Code Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sedonik committed Sep 24, 2019
1 parent ab4e736 commit 1e821dd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public function testAddSimpleProductWithDateOption()
self::assertArrayHasKey('items', $response['addSimpleProductsToCart']['cart']);
self::assertCount(1, $response['addSimpleProductsToCart']['cart']);

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

self::assertEquals($expectedValue, $customizableOptionOutput);
Expand Down

0 comments on commit 1e821dd

Please sign in to comment.