Skip to content

Commit 2786d73

Browse files
committed
MAGETWO-60594: Checkout cart is broken after adding product from wishlist
1 parent 796c294 commit 2786d73

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Bundle/Test/Unit/Model/CartItemProcessorTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ public function testProcessProductOptionsifBundleOptionsNotExists()
188188
);
189189
$methods = ['getProductType', 'getBuyRequest'];
190190
$cartItemMock = $this->getMock(
191-
\Magento\Quote\Model\Quote\Item::class, $methods, [], '', false);
191+
\Magento\Quote\Model\Quote\Item::class,
192+
$methods,
193+
[],
194+
'',
195+
false
196+
);
192197
$cartItemMock->expects($this->once())->method('getProductType')->willReturn(Type::TYPE_BUNDLE);
193198
$cartItemMock->expects($this->exactly(2))->method('getBuyRequest')->willReturn($buyRequestMock);
194199
$this->assertSame($cartItemMock, $this->model->processOptions($cartItemMock));

0 commit comments

Comments
 (0)