Skip to content

Commit 45f6465

Browse files
Merge branch 'ACQE-8324' of github.com:magento-gl/magento2ce into ACQE-8324
2 parents e539477 + a63f89c commit 45f6465

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestCartConfigurableItemRepositoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ public function testGuestCartUpdateConfigurableItem(): void
9090
*/
9191
private function createGuestCart(): string
9292
{
93-
$requestData = ['storeId' => 1];
9493
$quoteId = $this->_webApiCall([
9594
'rest' => [
9695
'resourcePath' => self::RESOURCE_PATH_GUEST_CART,
@@ -101,9 +100,10 @@ private function createGuestCart(): string
101100
'serviceVersion' => self::SERVICE_VERSION_GUEST_CART,
102101
'operation' => self::SERVICE_NAME_GUEST_CART . 'CreateEmptyCart',
103102
],
104-
], $requestData);
103+
], ['storeId' => 1]);
105104
$this->assertTrue(strlen($quoteId) >= 32);
106105

106+
107107
return $quoteId;
108108
}
109109

@@ -138,6 +138,7 @@ private function addConfigurableProductToCart(string $guestCartId): array
138138
$requestData['cartItem']['product_option']['extension_attributes']['configurable_item_options'][0]
139139
);
140140

141+
141142
return $response;
142143
}
143144

@@ -151,8 +152,7 @@ private function addConfigurableProductToCart(string $guestCartId): array
151152
private function verifyCartItems(string $guestCartId, int $expectedItemId): void
152153
{
153154
$serviceInfo = $this->getCartServiceInfo($guestCartId, 'get');
154-
$requestData = ['cartId' => $guestCartId];
155-
$response = $this->_webApiCall($serviceInfo, $requestData);
155+
$response = $this->_webApiCall($serviceInfo, ['cartId' => $guestCartId]);
156156
$this->assertIsArray($response);
157157
$this->assertGreaterThan(0, count($response), 'Cart should contain at least one item');
158158

0 commit comments

Comments
 (0)