@@ -196,16 +196,6 @@ protected function setUp()
196
196
*/
197
197
public function testInitialize ()
198
198
{
199
- $ this ->websiteMock ->expects ($ this ->once ())
200
- ->method ('getId ' )
201
- ->willReturn ($ this ->websiteId );
202
- $ this ->storeMock ->expects ($ this ->once ())
203
- ->method ('getWebsite ' )
204
- ->willReturn ($ this ->websiteMock );
205
- $ this ->storeManagerMock ->expects ($ this ->once ())
206
- ->method ('getStore ' )
207
- ->with (true )
208
- ->willReturn ($ this ->storeMock );
209
199
$ this ->customOptionMock ->expects ($ this ->once ())
210
200
->method ('setProductSku ' );
211
201
$ this ->customOptionMock ->expects ($ this ->once ())
@@ -270,9 +260,6 @@ public function testInitialize()
270
260
->method ('filter ' )
271
261
->with (['stock_data ' ])
272
262
->willReturn (['stock_data ' ]);
273
- $ this ->storeManagerMock ->expects ($ this ->once ())
274
- ->method ('hasSingleStore ' )
275
- ->willReturn (true );
276
263
$ this ->productMock ->expects ($ this ->once ())
277
264
->method ('isLockedAttribute ' )
278
265
->with ('media ' )
@@ -300,9 +287,6 @@ public function testInitialize()
300
287
$ this ->productMock ->expects ($ this ->once ())
301
288
->method ('getSku ' )
302
289
->willReturn ('sku ' );
303
- $ this ->productMock ->expects ($ this ->once ())
304
- ->method ('setWebsiteIds ' )
305
- ->with ([$ this ->websiteId ]);
306
290
$ this ->productMock ->expects ($ this ->any ())
307
291
->method ('getOptionsReadOnly ' )
308
292
->willReturn (false );
0 commit comments