Skip to content

Commit 81955af

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-39117: Updating qty that exceeds the qty in stock for registered customer by API should return error
fixed API tests
1 parent 7bf5f4e commit 81955af

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dev/tests/api-functional/testsuite/Magento/Quote/Api/CartItemRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testGetList()
6666

6767
/**
6868
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
69-
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
69+
* @magentoApiDataFixture Magento/Catalog/_files/product_without_options.php
7070
*/
7171
public function testAddItem()
7272
{

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestCartItemRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testGetList()
7777

7878
/**
7979
* @magentoApiDataFixture Magento/Checkout/_files/quote_with_address_saved.php
80-
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
80+
* @magentoApiDataFixture Magento/Catalog/_files/product_without_options.php
8181
*/
8282
public function testAddItem()
8383
{

dev/tests/integration/testsuite/Magento/Catalog/_files/product_without_options.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030
\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH
3131
)->setStatus(
3232
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
33+
)->setQty(
34+
100
3335
)->save();

0 commit comments

Comments
 (0)