Skip to content

Commit 0f6513f

Browse files
committed
MC-43189: [Graphql] Swatch Configurable option can be added to cart on any website
1 parent 5da2d67 commit 0f6513f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/ConfigurableProduct/AddConfigurableProductToCartTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public function testAddMultipleConfigurableProductToCart()
8383
$parentSku = $product['sku'];
8484
$skuOne = 'simple_10';
8585
$skuTwo = 'simple_20';
86-
$valueIdOne = $product['configurable_options'][0]['values'][0]['value_index'];
8786

8887
$query = <<<QUERY
8988
mutation {
@@ -623,8 +622,12 @@ private function getQuery(string $maskedQuoteId, string $parentSku, string $sku,
623622
* @param int $quantity
624623
* @return string
625624
*/
626-
private function graphQlQueryForVariant(string $maskedQuoteId, string $parentSku, string $sku, int $quantity): string
627-
{
625+
private function graphQlQueryForVariant(
626+
string $maskedQuoteId,
627+
string $parentSku,
628+
string $sku,
629+
int $quantity
630+
): string {
628631
return <<<QUERY
629632
mutation {
630633
addConfigurableProductsToCart(

0 commit comments

Comments
 (0)