Skip to content

Commit f090d3e

Browse files
author
Sergey Semenov
committed
MAGETWO-37742: It's impossible to add Product to Shopping Cart from shared Wishlist
1 parent ca6b7ce commit f090d3e

File tree

1 file changed

+2
-0
lines changed
  • app/code/Magento/Wishlist/Test/Unit/Controller/Shared

1 file changed

+2
-0
lines changed

app/code/Magento/Wishlist/Test/Unit/Controller/Shared/CartTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ protected function setUp()
143143

144144
$this->optionFactory = $this->getMockBuilder('Magento\Wishlist\Model\Item\OptionFactory')
145145
->disableOriginalConstructor()
146+
->setMethods(['create'])
146147
->getMock();
147148
$this->optionFactory->expects($this->once())
148149
->method('create')
@@ -154,6 +155,7 @@ protected function setUp()
154155

155156
$this->itemFactory = $this->getMockBuilder('Magento\Wishlist\Model\ItemFactory')
156157
->disableOriginalConstructor()
158+
->setMethods(['create'])
157159
->getMock();
158160
$this->itemFactory->expects($this->once())
159161
->method('create')

0 commit comments

Comments
 (0)