File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Wishlist/Test/Unit/Controller/Index Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ protected function setUp()
212
212
->willReturnMap (
213
213
[
214
214
[ResultFactory::TYPE_REDIRECT , [], $ this ->resultRedirectMock ],
215
- [ResultFactory::TYPE_JSON , [], $ this ->resultJsontMock ]
215
+ [ResultFactory::TYPE_JSON , [], $ this ->resultJsonMock ]
216
216
]
217
217
);
218
218
@@ -321,7 +321,7 @@ public function testExecuteWithQuantityArrayAjax()
321
321
322
322
$ this ->resultJsonMock ->expects ($ this ->once ())
323
323
->method ('setData ' )
324
- ->with (['backUrl ' => $ redirectUrl ])
324
+ ->with (['backUrl ' => $ refererUrl ])
325
325
->willReturnSelf ();
326
326
327
327
$ this ->assertSame ($ this ->resultJsonMock , $ this ->model ->execute ());
@@ -454,7 +454,7 @@ protected function prepareExecuteWithQuantityArray($isAjax = false)
454
454
->willReturn ($ params );
455
455
$ this ->requestMock ->expects ($ this ->once ())
456
456
->method ('isAjax ' )
457
- ->willReturn (false );
457
+ ->willReturn ($ isAjax );
458
458
459
459
$ buyRequestMock = $ this ->getMockBuilder ('Magento\Framework\Object ' )
460
460
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments