Skip to content

Commit 06820a3

Browse files
committed
Fix message when maxSaleQty is set and qty is more than maxSaleQty #367
1 parent 45717f8 commit 06820a3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogInventory/AddProductToCartTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,10 @@ public function testAddProductIfQuantityIsNotAvailable()
6161
* @magentoApiDataFixture Magento/Catalog/_files/products.php
6262
* @magentoApiDataFixture Magento/Checkout/_files/active_quote.php
6363
* @magentoConfigFixture default cataloginventory/item_options/max_sale_qty 5
64-
* @expectedException \Exception
6564
* @expectedExceptionMessage The most you may purchase is 5.
6665
*/
6766
public function testAddMoreProductsThatAllowed()
6867
{
69-
$this->markTestIncomplete('https://github.com/magento/graphql-ce/issues/167');
70-
7168
$sku = 'custom-design-simple-product';
7269
$qty = 7;
7370

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/AddSimpleProductToCartTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testAddSimpleProductsToCart()
5151
$qty = 2;
5252
$maskedQuoteId = $this->getMaskedQuoteId();
5353

54-
$query = $this->geAddSimpleProducttQuery($maskedQuoteId, $sku, $qty);
54+
$query = $this->geAddSimpleProductQuery($maskedQuoteId, $sku, $qty);
5555
$response = $this->graphQlQuery($query);
5656
self::assertArrayHasKey('cart', $response['addSimpleProductsToCart']);
5757

@@ -76,7 +76,7 @@ public function getMaskedQuoteId() : string
7676
* @param int $qty
7777
* @return string
7878
*/
79-
public function geAddSimpleProducttQuery(string $maskedQuoteId, string $sku, int $qty) : string
79+
public function geAddSimpleProductQuery(string $maskedQuoteId, string $sku, int $qty) : string
8080
{
8181
return <<<QUERY
8282
mutation {

0 commit comments

Comments
 (0)