@@ -260,21 +260,6 @@ public function testAddChildToNotBundleProduct()
260
260
$ this ->model ->addChild ($ productMock , 1 , $ productLink );
261
261
}
262
262
263
- /**
264
- * @expectedException \Magento\Framework\Exception\InputException
265
- */
266
- public function testAddChildWithId ()
267
- {
268
- $ productLink = $ this ->getMock ('\Magento\Bundle\Api\Data\LinkInterface ' );
269
- $ productLink ->expects ($ this ->any ())->method ('getId ' )->will ($ this ->returnValue (1 ));
270
-
271
- $ productMock = $ this ->getMock ('\Magento\Catalog\Model\Product ' , [], [], '' , false );
272
- $ productMock ->expects ($ this ->once ())->method ('getTypeId ' )->will ($ this ->returnValue (
273
- \Magento \Catalog \Model \Product \Type::TYPE_BUNDLE
274
- ));
275
- $ this ->model ->addChild ($ productMock , 1 , $ productLink );
276
- }
277
-
278
263
/**
279
264
* @expectedException \Magento\Framework\Exception\InputException
280
265
*/
@@ -607,7 +592,6 @@ public function testSaveChild()
607
592
'load ' ,
608
593
'setProductId ' ,
609
594
'setParentProductId ' ,
610
- 'setSelectionId ' ,
611
595
'setOptionId ' ,
612
596
'setPosition ' ,
613
597
'setSelectionQty ' ,
@@ -625,7 +609,6 @@ public function testSaveChild()
625
609
$ selection ->expects ($ this ->any ())->method ('getId ' )->will ($ this ->returnValue ($ id ));
626
610
$ selection ->expects ($ this ->once ())->method ('setProductId ' )->with ($ linkProductId );
627
611
$ selection ->expects ($ this ->once ())->method ('setParentProductId ' )->with ($ parentProductId );
628
- $ selection ->expects ($ this ->once ())->method ('setSelectionId ' )->with ($ id );
629
612
$ selection ->expects ($ this ->once ())->method ('setOptionId ' )->with ($ optionId );
630
613
$ selection ->expects ($ this ->once ())->method ('setPosition ' )->with ($ position );
631
614
$ selection ->expects ($ this ->once ())->method ('setSelectionQty ' )->with ($ qty );
0 commit comments