Skip to content

Commit bc202af

Browse files
committed
MC-32170: View and edit shopping cart
1 parent 8fc1816 commit bc202af

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dev/tests/integration/testsuite/Magento/Sales/Block/Adminhtml/Order/Create/Items/GridTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function setUp()
4949
$this->getQuoteByReservedOrderId = $this->objectManager->get(GetQuoteByReservedOrderId::class);
5050
$this->session = $this->objectManager->get(Quote::class);
5151
$this->layout = $this->objectManager->get(LayoutInterface::class);
52-
$this->block =$this->layout->createBlock(Grid::class);
52+
$this->block = $this->layout->createBlock(Grid::class);
5353
$this->layout->createBlock(Items::class)->setChild('items_grid', $this->block);
5454
}
5555

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Create/LoadBlockTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testAddProductToOrderFromShoppingCart(bool $asJson, bool $asJsVa
9999
'add_cart_item' => [
100100
$oldQuote->getItemsCollection()->getFirstItem()->getId() => 1,
101101
],
102-
]
102+
],
103103
]);
104104

105105
$this->dispatchWitParams($params, $post);
@@ -146,7 +146,7 @@ public function testRemoveProductFromShoppingCart(): void
146146
]);
147147
$params = $this->hydrateParams();
148148

149-
$this->dispatchWitParams($this->hydrateParams(), $post);
149+
$this->dispatchWitParams($params, $post);
150150

151151
$this->checkHandles(explode(',', $params['block']));
152152
$this->checkQuotes($oldQuote);
@@ -189,8 +189,8 @@ public function testMoveFromOrderToShoppingCart(): void
189189
'qty' => '1',
190190
'use_discount' => '1',
191191
'action' => 'cart',
192-
]
193-
]
192+
],
193+
],
194194
]);
195195
$params = $this->hydrateParams(['blocks' => null]);
196196
$this->dispatchWitParams($params, $post);
@@ -216,7 +216,7 @@ private function checkQuotes(CartInterface $oldQuote, ?string $expectedSku = nul
216216
$newQuoteItemsCollection = $newQuote->getItemsCollection(false);
217217

218218
if ($expectedSku !== null) {
219-
$this->assertNotNull($newQuoteItemsCollection->getItemByColumnValue('sku', 'simple2'));
219+
$this->assertNotNull($newQuoteItemsCollection->getItemByColumnValue('sku', $expectedSku));
220220
} else {
221221
$this->assertEmpty($newQuoteItemsCollection->getItems());
222222
}
@@ -249,7 +249,7 @@ private function checkHandles(array $blocks, bool $asJson = true): void
249249
}
250250

251251
/**
252-
* Fill params array to proper state
252+
* Fill post params array to proper state
253253
*
254254
* @param array $inputArray
255255
* @return array

0 commit comments

Comments
 (0)