Skip to content

Commit 1b188ee

Browse files
committed
ACP2E-2704: Getting Unable to send the cookie. Size of 'mage-messages' while trying to Reorder
1 parent fae325e commit 1b188ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Sales/Model/Reorder/Reorder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ class Reorder
127127
* @param OrderInfoBuyRequestGetter $orderInfoBuyRequestGetter
128128
* @param StoreManagerInterface|null $storeManager
129129
* @param bool $addToCartInvalidProduct
130+
*
131+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
130132
*/
131133
public function __construct(
132134
OrderFactory $orderFactory,

dev/tests/integration/testsuite/Magento/Sales/Controller/Order/ReorderWithDifferentStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testReorderWithDifferentStoreAndGlobalCustomerAccount(): void
117117
$this->dispatch('sales/order/reorder/');
118118
$this->assertRedirect($this->stringContains('checkout/cart'));
119119
$this->quote = $this->checkoutSession->getQuote();
120-
$quoteItemsCollection = $this->quote->getAllItems();
121-
$this->assertCount(0, $quoteItemsCollection);
120+
121+
$this->assertCount(1, $this->quote->getErrors());
122122
}
123123
}

0 commit comments

Comments
 (0)