Skip to content

Commit 5e3221e

Browse files
committed
magento/graphql-ce#808: [Test coverage] Add disabled variation of Configurable Product to cart
1 parent 6ff261f commit 5e3221e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function testAddDisabledVariationToCart()
292292

293293
$this->expectException(Exception::class);
294294
$this->expectExceptionMessage(
295-
'Could not add the product with SKU configurable to the shopping cart: This product is out of stock.'
295+
'Could not add the product with SKU configurable to the shopping cart'
296296
);
297297

298298
$this->graphQlMutation($query);
@@ -318,7 +318,7 @@ public function testOutOfStockVariationToCart()
318318

319319
$this->expectException(Exception::class);
320320
$this->expectExceptionMessage(
321-
'Could not add the product with SKU configurable to the shopping cart: This product is out of stock.'
321+
'Could not add the product with SKU configurable to the shopping cart'
322322
);
323323

324324
$this->graphQlMutation($query);

0 commit comments

Comments
 (0)