Skip to content

Commit 6d62c5d

Browse files
author
Yuri Kovsher
committed
MAGETWO-36101: Refactor controllers in the Wishlist module
1 parent b45effc commit 6d62c5d

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

app/code/Magento/Wishlist/Test/Unit/Controller/Index/AddTest.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,7 @@ public function setUp()
4848
{
4949
$this->context = $this->getMock(
5050
'Magento\Framework\App\Action\Context',
51-
[
52-
// 'getRequest',
53-
// 'getResponse',
54-
// 'getObjectManager',
55-
// 'getEventManager',
56-
// 'getUrl',
57-
// 'getActionFlag',
58-
// 'getRedirect',
59-
// 'getView',
60-
// 'getMessageManager',
61-
// 'getResultFactory'
62-
],
51+
[],
6352
[],
6453
'',
6554
false

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ protected function setUp()
9494
);
9595

9696
$this->objectManagerHelper = new ObjectManagerHelper($this);
97-
$this->context = $this->objectManagerHelper->getObject('Magento\Framework\App\Action\Context',
97+
$this->context = $this->objectManagerHelper->getObject(
98+
'Magento\Framework\App\Action\Context',
9899
[
99100
'request' => $this->requestMock,
100101
'resultFactory' => $this->resultFactoryMock
101102
]
102103
);
103-
$this->allcartController = $this->objectManagerHelper->getObject('Magento\Wishlist\Controller\Shared\Allcart',
104+
$this->allcartController = $this->objectManagerHelper->getObject(
105+
'Magento\Wishlist\Controller\Shared\Allcart',
104106
[
105107
'context' => $this->context,
106108
'wishlistProvider' => $this->wishlistProviderMock,

0 commit comments

Comments
 (0)