Skip to content

Commit bc832bb

Browse files
author
Vitaliy Boyko
committed
graphQl-810: Static fix
1 parent 25e1590 commit bc832bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ public function testAddNonExistentConfigurableProductParentToCart()
117117
/**
118118
* @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable_sku.php
119119
* @magentoApiDataFixture Magento/Checkout/_files/active_quote.php
120-
* @expectedException \Exception
121-
* @expectedExceptionMessage Could not add the product with SKU configurable to the shopping cart: Could not find specified product.
122120
*/
123121
public function testAddNonExistentConfigurableProductVariationToCart()
124122
{
@@ -136,6 +134,11 @@ public function testAddNonExistentConfigurableProductVariationToCart()
136134
2000
137135
);
138136

137+
$this->expectException(\Exception::class);
138+
$this->expectExceptionMessage(
139+
'Could not add the product with SKU configurable to the shopping cart: Could not find specified product.'
140+
);
141+
139142
$this->graphQlMutation($query);
140143
}
141144

0 commit comments

Comments
 (0)