Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
#795: WebAPI test failing with MSI for AddProductToCartTest::testAddM…
Browse files Browse the repository at this point in the history
…oreProductsThatAllowed
  • Loading branch information
naydav committed Jul 30, 2019
1 parent 65cdb4c commit 6e7df28
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,17 @@ public function testAddProductIfQuantityIsNotAvailable()
* @magentoApiDataFixture Magento/Catalog/_files/products.php
* @magentoApiDataFixture Magento/Checkout/_files/active_quote.php
* @magentoConfigFixture default_store cataloginventory/item_options/max_sale_qty 5
* @expectedException \Exception
* @expectedExceptionMessage The most you may purchase is 5.
*/
public function testAddMoreProductsThatAllowed()
{
$sku = 'custom-design-simple-product';
$quantity = 7;
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId->execute('test_order_1');

$this->expectExceptionMessageRegExp(
'/The most you may purchase is 5|The requested qty exceeds the maximum qty allowed in shopping cart/'
);

$query = $this->getQuery($maskedQuoteId, $sku, $quantity);
$this->graphQlMutation($query);
}
Expand Down

0 comments on commit 6e7df28

Please sign in to comment.