Skip to content

Commit fdf2aaa

Browse files
author
Yuri Kovsher
committed
MAGETWO-36610: S51 PR
1 parent 79888d4 commit fdf2aaa

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Wishlist/Test/Unit/Controller/Index

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ protected function setUp()
212212
->willReturnMap(
213213
[
214214
[ResultFactory::TYPE_REDIRECT, [], $this->resultRedirectMock],
215-
[ResultFactory::TYPE_JSON, [], $this->resultJsontMock]
215+
[ResultFactory::TYPE_JSON, [], $this->resultJsonMock]
216216
]
217217
);
218218

@@ -321,7 +321,7 @@ public function testExecuteWithQuantityArrayAjax()
321321

322322
$this->resultJsonMock->expects($this->once())
323323
->method('setData')
324-
->with(['backUrl' => $redirectUrl])
324+
->with(['backUrl' => $refererUrl])
325325
->willReturnSelf();
326326

327327
$this->assertSame($this->resultJsonMock, $this->model->execute());
@@ -454,7 +454,7 @@ protected function prepareExecuteWithQuantityArray($isAjax = false)
454454
->willReturn($params);
455455
$this->requestMock->expects($this->once())
456456
->method('isAjax')
457-
->willReturn(false);
457+
->willReturn($isAjax);
458458

459459
$buyRequestMock = $this->getMockBuilder('Magento\Framework\Object')
460460
->disableOriginalConstructor()

0 commit comments

Comments
 (0)