File tree 2 files changed +18
-0
lines changed
app/code/Magento/Wishlist/Test/Unit/Controller/Shared
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,21 @@ protected function setUp(): void
77
77
$ this ->contextMock = $ this ->getMockBuilder (Context::class)
78
78
->disableOriginalConstructor ()
79
79
->getMock ();
80
+ $ this ->wishlistMock = $ this ->getMockBuilder (Wishlist::class)
81
+ ->disableOriginalConstructor ()
82
+ ->getMock ();
83
+ $ this ->requestMock = $ this ->getMockBuilder (Http::class)
84
+ ->disableOriginalConstructor ()
85
+ ->getMock ();
86
+ $ this ->resultFactoryMock = $ this ->getMockBuilder (ResultFactory::class)
87
+ ->disableOriginalConstructor ()
88
+ ->getMock ();
89
+ $ this ->resultRedirectMock = $ this ->getMockBuilder (Redirect::class)
90
+ ->disableOriginalConstructor ()
91
+ ->getMock ();
92
+ $ this ->resultForwardMock = $ this ->getMockBuilder (Forward::class)
93
+ ->disableOriginalConstructor ()
94
+ ->getMock ();
80
95
81
96
$ this ->allcartController = new Allcart (
82
97
$ this ->contextMock ,
Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ protected function setUp(): void
173
173
->disableOriginalConstructor ()
174
174
->getMock ();
175
175
176
+ $ this ->product = $ this ->getMockBuilder (Product::class)
177
+ ->disableOriginalConstructor ()
178
+ ->getMock ();
176
179
177
180
$ this ->model = new SharedCart (
178
181
$ this ->context ,
You can’t perform that action at this time.
0 commit comments