@@ -99,7 +99,7 @@ public function testAddProductToOrderFromShoppingCart(bool $asJson, bool $asJsVa
99
99
'add_cart_item ' => [
100
100
$ oldQuote ->getItemsCollection ()->getFirstItem ()->getId () => 1 ,
101
101
],
102
- ]
102
+ ],
103
103
]);
104
104
105
105
$ this ->dispatchWitParams ($ params , $ post );
@@ -146,7 +146,7 @@ public function testRemoveProductFromShoppingCart(): void
146
146
]);
147
147
$ params = $ this ->hydrateParams ();
148
148
149
- $ this ->dispatchWitParams ($ this -> hydrateParams () , $ post );
149
+ $ this ->dispatchWitParams ($ params , $ post );
150
150
151
151
$ this ->checkHandles (explode (', ' , $ params ['block ' ]));
152
152
$ this ->checkQuotes ($ oldQuote );
@@ -189,8 +189,8 @@ public function testMoveFromOrderToShoppingCart(): void
189
189
'qty ' => '1 ' ,
190
190
'use_discount ' => '1 ' ,
191
191
'action ' => 'cart ' ,
192
- ]
193
- ]
192
+ ],
193
+ ],
194
194
]);
195
195
$ params = $ this ->hydrateParams (['blocks ' => null ]);
196
196
$ this ->dispatchWitParams ($ params , $ post );
@@ -216,7 +216,7 @@ private function checkQuotes(CartInterface $oldQuote, ?string $expectedSku = nul
216
216
$ newQuoteItemsCollection = $ newQuote ->getItemsCollection (false );
217
217
218
218
if ($ expectedSku !== null ) {
219
- $ this ->assertNotNull ($ newQuoteItemsCollection ->getItemByColumnValue ('sku ' , ' simple2 ' ));
219
+ $ this ->assertNotNull ($ newQuoteItemsCollection ->getItemByColumnValue ('sku ' , $ expectedSku ));
220
220
} else {
221
221
$ this ->assertEmpty ($ newQuoteItemsCollection ->getItems ());
222
222
}
@@ -249,7 +249,7 @@ private function checkHandles(array $blocks, bool $asJson = true): void
249
249
}
250
250
251
251
/**
252
- * Fill params array to proper state
252
+ * Fill post params array to proper state
253
253
*
254
254
* @param array $inputArray
255
255
* @return array
0 commit comments