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()
549
549
$ productLink ->method ('getOptionId ' )->willReturn (1 );
550
550
$ productLink ->method ('getSelectionId ' )->willReturn (1 );
551
551
552
- $ this ->metadataMock ->expects ($ this ->once ( ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
552
+ $ this ->metadataMock ->expects ($ this ->exactly ( 2 ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
553
553
$ productMock = $ this ->createMock (Product::class);
554
554
$ productMock ->expects ($ this ->once ())
555
555
->method ('getTypeId ' )
@@ -626,7 +626,7 @@ public function testAddChild()
626
626
$ productLink ->method ('getOptionId ' )->willReturn (1 );
627
627
$ productLink ->method ('getSelectionId ' )->willReturn (1 );
628
628
629
- $ this ->metadataMock ->expects ($ this ->once ( ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
629
+ $ this ->metadataMock ->expects ($ this ->exactly ( 2 ))->method ('getLinkField ' )->willReturn ($ this ->linkField );
630
630
$ productMock = $ this ->createMock (Product::class);
631
631
$ productMock ->expects ($ this ->once ())->method ('getTypeId ' )->willReturn (Type::TYPE_BUNDLE );
632
632
$ productMock
You can’t perform that action at this time.
0 commit comments