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
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 ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments