9 use \Magento\Bundle\Pricing\Price\BundleSelectionFactory;
32 $this->bundleMock = $this->createMock(\
Magento\Catalog\Model\Product::class);
33 $this->selectionMock = $this->createMock(\
Magento\Catalog\Model\Product::class);
35 $this->objectManagerMock = $this->createMock(\
Magento\Framework\ObjectManagerInterface::class);
37 $this->objectManagerHelper =
new ObjectManagerHelper($this);
38 $this->bundleSelectionFactory = $this->objectManagerHelper->getObject(
39 \
Magento\Bundle\Pricing\
Price\BundleSelectionFactory::class,
41 'objectManager' => $this->objectManagerMock
49 $this->objectManagerMock->expects($this->once())
55 'test' =>
'some value',
56 'bundleProduct' => $this->bundleMock,
57 'saleableItem' => $this->selectionMock,
62 ->will($this->returnValue(
$result));
65 $this->bundleSelectionFactory
66 ->create($this->bundleMock, $this->selectionMock, 2., [
'test' =>
'some value'])
const SELECTION_CLASS_DEFAULT