Skip to content

Commit 2f4c22c

Browse files
author
Yu Tang
committed
MAGETWO-28256: Bundle Integration API Refactoring
- Fixed failing unit tests.
1 parent 9254238 commit 2f4c22c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

dev/tests/unit/testsuite/Magento/Bundle/Model/LinkManagementTest.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -260,21 +260,6 @@ public function testAddChildToNotBundleProduct()
260260
$this->model->addChild($productMock, 1, $productLink);
261261
}
262262

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-
278263
/**
279264
* @expectedException \Magento\Framework\Exception\InputException
280265
*/
@@ -607,7 +592,6 @@ public function testSaveChild()
607592
'load',
608593
'setProductId',
609594
'setParentProductId',
610-
'setSelectionId',
611595
'setOptionId',
612596
'setPosition',
613597
'setSelectionQty',
@@ -625,7 +609,6 @@ public function testSaveChild()
625609
$selection->expects($this->any())->method('getId')->will($this->returnValue($id));
626610
$selection->expects($this->once())->method('setProductId')->with($linkProductId);
627611
$selection->expects($this->once())->method('setParentProductId')->with($parentProductId);
628-
$selection->expects($this->once())->method('setSelectionId')->with($id);
629612
$selection->expects($this->once())->method('setOptionId')->with($optionId);
630613
$selection->expects($this->once())->method('setPosition')->with($position);
631614
$selection->expects($this->once())->method('setSelectionQty')->with($qty);

0 commit comments

Comments
 (0)