File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Sales/Model/Reorder
dev/tests/integration/testsuite/Magento/Sales/Controller/Order Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ class Reorder
127
127
* @param OrderInfoBuyRequestGetter $orderInfoBuyRequestGetter
128
128
* @param StoreManagerInterface|null $storeManager
129
129
* @param bool $addToCartInvalidProduct
130
+ *
131
+ * @SuppressWarnings(PHPMD.ExcessiveParameterList)
130
132
*/
131
133
public function __construct (
132
134
OrderFactory $ orderFactory ,
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public function testReorderWithDifferentStoreAndGlobalCustomerAccount(): void
117
117
$ this ->dispatch ('sales/order/reorder/ ' );
118
118
$ this ->assertRedirect ($ this ->stringContains ('checkout/cart ' ));
119
119
$ this ->quote = $ this ->checkoutSession ->getQuote ();
120
- $ quoteItemsCollection = $ this -> quote -> getAllItems ();
121
- $ this ->assertCount (0 , $ quoteItemsCollection );
120
+
121
+ $ this ->assertCount (1 , $ this -> quote -> getErrors () );
122
122
}
123
123
}
You can’t perform that action at this time.
0 commit comments