Skip to content

Commit 9af89e7

Browse files
committed
ACP2E-2620: In admin, the "Shopping Cart" on left side doesn't get updated when selecting the items and "Move to Shopping Cart" from the right side
- Added the test coverage.
1 parent 6a07e08 commit 9af89e7

File tree

1 file changed

+2
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder

1 file changed

+2
-0
lines changed

dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder/CreateTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ public function testMoveQuoteItemToCart()
699699
/** @var SessionQuote $session */
700700
$session = $this->objectManager->create(SessionQuote::class);
701701
$session->setCustomerId($fixtureCustomerId);
702+
$session->setTransferredItems(['cart' => [124]]);
702703
/** @var $quoteFixture Quote */
703704
$quoteFixture = $this->objectManager->create(Quote::class);
704705
$quoteFixture->load('test01', 'reserved_order_id');
@@ -710,6 +711,7 @@ public function testMoveQuoteItemToCart()
710711
$this->model->moveQuoteItem($item, 'cart', 3);
711712
self::assertEquals(4, $item->getQty(), 'Number of Qty isn\'t correct for Quote item.');
712713
self::assertEquals(3, $item->getQtyToAdd(), 'Number of added qty isn\'t correct for Quote item.');
714+
self::assertEquals($session->getTransferredItems(), []);
713715
}
714716

715717
/**

0 commit comments

Comments
 (0)