Skip to content

Commit 357fbb1

Browse files
committed
Revert "AC-15054: Product Add to Cart issue in Rest API"
This reverts commit 2f851aa.
1 parent c436eb4 commit 357fbb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Quote/Test/Unit/Plugin/Webapi/ValidateProductWebsiteAssignmentTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public function testBeforeSaveProductWebsiteIdsNotArray()
245245
$quoteId = 1;
246246
$storeId = 1;
247247
$productId = 123;
248+
$websiteId = 1;
248249
$productWebsiteIds = null; // Not an array
249250

250251
$this->cartItemMock->expects($this->once())
@@ -398,6 +399,8 @@ public function testBeforeSaveEmptyWebsiteIds()
398399
$quoteId = 1;
399400
$storeId = 1;
400401
$productId = 123;
402+
$websiteId = 1;
403+
$productWebsiteIds = []; // Empty array
401404

402405
$this->cartItemMock->expects($this->once())
403406
->method('getSku')

0 commit comments

Comments
 (0)