File tree 1 file changed +4
-2
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogInventory
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,17 @@ public function testAddProductIfQuantityIsNotAvailable()
50
50
* @magentoApiDataFixture Magento/Catalog/_files/products.php
51
51
* @magentoApiDataFixture Magento/Checkout/_files/active_quote.php
52
52
* @magentoConfigFixture default_store cataloginventory/item_options/max_sale_qty 5
53
- * @expectedException \Exception
54
- * @expectedExceptionMessage The most you may purchase is 5.
55
53
*/
56
54
public function testAddMoreProductsThatAllowed ()
57
55
{
58
56
$ sku = 'custom-design-simple-product ' ;
59
57
$ quantity = 7 ;
60
58
$ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_order_1 ' );
61
59
60
+ $ this ->expectExceptionMessageRegExp (
61
+ '/The most you may purchase is 5|The requested qty exceeds the maximum qty allowed in shopping cart/ '
62
+ );
63
+
62
64
$ query = $ this ->getQuery ($ maskedQuoteId , $ sku , $ quantity );
63
65
$ this ->graphQlMutation ($ query );
64
66
}
You can’t perform that action at this time.
0 commit comments