@@ -255,7 +255,7 @@ public function testExecuteWithoutProductId()
255
255
->method ('getParams ' )
256
256
->will ($ this ->returnValue ([]));
257
257
258
- $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , null , [], '' , false );
258
+ $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , null , [], '' , false );
259
259
$ response = $ this ->getMock ('Magento\Framework\App\Response\Http ' , null , [], '' , false );
260
260
$ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , null , [], '' , false );
261
261
$ url = $ this ->getMock ('Magento\Framework\Url ' , null , [], '' , false );
@@ -350,9 +350,9 @@ public function testExecuteWithProductIdAndWithoutProduct()
350
350
->method ('getParams ' )
351
351
->will ($ this ->returnValue (['product ' => 2 ]));
352
352
353
- $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , null , [], '' , false );
353
+ $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , null , [], '' , false );
354
354
$ response = $ this ->getMock ('Magento\Framework\App\Response\Http ' , null , [], '' , false );
355
- $ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , null , [], '' , false );
355
+ $ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , null , [], '' , false );
356
356
$ url = $ this ->getMock ('Magento\Framework\Url ' , null , [], '' , false );
357
357
$ actionFlag = $ this ->getMock ('Magento\Framework\App\ActionFlag ' , null , [], '' , false );
358
358
$ redirect = $ this ->getMock ('\Magento\Store\App\Response\Redirect ' , ['redirect ' ], [], '' , false );
@@ -460,9 +460,9 @@ public function testExecuteWithProductAndCantAddProductToWishlist()
460
460
->method ('getParams ' )
461
461
->will ($ this ->returnValue (['product ' => 2 ]));
462
462
463
- $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , null , [], '' , false );
463
+ $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , null , [], '' , false );
464
464
$ response = $ this ->getMock ('Magento\Framework\App\Response\Http ' , null , [], '' , false );
465
- $ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , null , [], '' , false );
465
+ $ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , null , [], '' , false );
466
466
$ url = $ this ->getMock ('Magento\Framework\Url ' , null , [], '' , false );
467
467
$ actionFlag = $ this ->getMock ('Magento\Framework\App\ActionFlag ' , null , [], '' , false );
468
468
$ redirect = $ this ->getMock ('\Magento\Store\App\Response\Redirect ' , ['redirect ' ], [], '' , false );
@@ -589,7 +589,7 @@ public function testExecuteProductAddedToWishlistAfterObjectManagerThrowExceptio
589
589
->will ($ this ->returnValue ($ product ));
590
590
591
591
$ exception = new \Exception ('Exception ' );
592
- $ wishListItem = new \stdClass ();
592
+ $ wishListItem = new \stdClass ();
593
593
594
594
$ wishlist = $ this ->getMock ('Magento\Wishlist\Model\Wishlist ' , ['addNewItem ' , 'save ' , 'getId ' ], [], '' , false );
595
595
$ wishlist
@@ -649,8 +649,8 @@ public function testExecuteProductAddedToWishlistAfterObjectManagerThrowExceptio
649
649
->method ('critical ' )
650
650
->with ($ exception )
651
651
->will ($ this ->returnValue (true ));
652
-
653
- $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , ['get ' ], [], '' , false );
652
+
653
+ $ om = $ this ->getMock ('Magento\Framework\App\ObjectManager ' , ['get ' ], [], '' , false );
654
654
$ om
655
655
->expects ($ this ->at (0 ))
656
656
->method ('get ' )
@@ -671,9 +671,9 @@ public function testExecuteProductAddedToWishlistAfterObjectManagerThrowExceptio
671
671
->method ('get ' )
672
672
->with ('Psr\Log\LoggerInterface ' )
673
673
->will ($ this ->returnValue ($ logger ));
674
-
674
+
675
675
$ response = $ this ->getMock ('Magento\Framework\App\Response\Http ' , null , [], '' , false );
676
- $ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , ['dispatch ' ], [], '' , false );
676
+ $ eventManager = $ this ->getMock ('Magento\Framework\Event\Manager ' , ['dispatch ' ], [], '' , false );
677
677
$ eventManager
678
678
->expects ($ this ->once ())
679
679
->method ('dispatch ' )
0 commit comments