File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Bundle/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ public function testAddChildCouldNotSave()
549549 $ productLink ->method ('getOptionId ' )->willReturn (1 );
550550 $ productLink ->method ('getSelectionId ' )->willReturn (1 );
551551
552- $ this ->metadataMock ->expects ($ this ->once ( ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
552+ $ this ->metadataMock ->expects ($ this ->exactly ( 2 ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
553553 $ productMock = $ this ->createMock (Product::class);
554554 $ productMock ->expects ($ this ->once ())
555555 ->method ('getTypeId ' )
@@ -626,7 +626,7 @@ public function testAddChild()
626626 $ productLink ->method ('getOptionId ' )->willReturn (1 );
627627 $ productLink ->method ('getSelectionId ' )->willReturn (1 );
628628
629- $ this ->metadataMock ->expects ($ this ->once ( ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
629+ $ this ->metadataMock ->expects ($ this ->exactly ( 2 ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
630630 $ productMock = $ this ->createMock (Product::class);
631631 $ productMock ->expects ($ this ->once ())->method ('getTypeId ' )->willReturn (Type::TYPE_BUNDLE );
632632 $ productMock
You can’t perform that action at this time.
0 commit comments