@@ -255,15 +255,10 @@ public function testGetFieldValue($stockId, $methods, $result)
255
255
$ websiteId = 15 ;
256
256
$ fieldName = 'field ' ;
257
257
258
- $ stockItemMock = $ this ->getMockForAbstractClass (
259
- StockItemInterface::class,
260
- [],
261
- '' ,
262
- false ,
263
- false ,
264
- false ,
265
- $ methods
266
- );
258
+ $ stockItemMock = $ this ->getMockBuilder (StockItemInterface::class)
259
+ ->disableOriginalConstructor ()
260
+ ->addMethods ($ methods )
261
+ ->getMockForAbstractClass ();
267
262
$ productMock = $ this ->createMock (Product::class);
268
263
$ storeMock = $ this ->createMock (Store::class);
269
264
$ productMock ->expects ($ this ->once ())
@@ -318,15 +313,10 @@ public function testGetConfigFieldValue($stockId, $methods, $result)
318
313
$ websiteId = 15 ;
319
314
$ fieldName = 'field ' ;
320
315
321
- $ stockItemMock = $ this ->getMockForAbstractClass (
322
- StockItemInterface::class,
323
- [],
324
- '' ,
325
- false ,
326
- false ,
327
- false ,
328
- $ methods
329
- );
316
+ $ stockItemMock = $ this ->getMockBuilder (StockItemInterface::class)
317
+ ->disableOriginalConstructor ()
318
+ ->addMethods ($ methods )
319
+ ->getMockForAbstractClass ();
330
320
$ productMock = $ this ->createMock (Product::class);
331
321
$ storeMock = $ this ->createMock (Store::class);
332
322
$ productMock ->expects ($ this ->once ())
@@ -516,10 +506,10 @@ public static function dataProviderModuleEnabled()
516
506
{
517
507
return [
518
508
[
519
- 'ModuleEnabled ' => true ,
509
+ 'moduleEnabled ' => true ,
520
510
],
521
511
[
522
- 'ModuleEnabled ' => false
512
+ 'moduleEnabled ' => false
523
513
]
524
514
];
525
515
}
0 commit comments