File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
app/code/Magento/ConfigurableProduct/Test/Unit/Model/Plugin Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -436,6 +436,17 @@ public function testAroundSaveWithOptions()
436
436
->method ('deleteById ' )
437
437
->with ($ productSku , 4 );
438
438
439
+ $ configurableProductTypeMock = $ this ->getMockBuilder (
440
+ '\Magento\ConfigurableProduct\Model\Product\Type\Configurable '
441
+ )->disableOriginalConstructor ()->getMock ();
442
+ $ configurableProductTypeMock ->expects ($ this ->once ())
443
+ ->method ('resetConfigurableAttributes ' )
444
+ ->with ($ this ->productMock )
445
+ ->willReturnSelf ();
446
+ $ this ->productMock ->expects ($ this ->any ())
447
+ ->method ('getTypeInstance ' )
448
+ ->willReturn ($ configurableProductTypeMock );
449
+
439
450
$ productId = 3 ;
440
451
$ this ->productMock ->expects ($ this ->once ())
441
452
->method ('getId ' )
You can’t perform that action at this time.
0 commit comments