35 $this->productRepository = $this->objectManager->create(\
Magento\Catalog\Api\ProductRepositoryInterface::class);
36 $this->productCollectionFactory =
39 $scopeConfig = $this->objectManager->get(\
Magento\Framework\
App\
Config\MutableScopeConfigInterface::class);
40 $scopeConfig->setValue(
41 \
Magento\CatalogInventory\Model\Configuration::XML_PATH_SHOW_OUT_OF_STOCK,
66 foreach ($strategyModifiers as $modifier) {
67 if (method_exists($this, $modifier[
'modifierName'])) {
69 $bundleProduct = call_user_func_array([$this, $modifier[
'modifierName']], $modifier[
'data']);
71 throw new \Magento\Framework\Exception\InputException(
72 __(
'Modifier %s does not exists', $modifier[
'modifierName'])
95 $option = $this->objectManager->create(\
Magento\Bundle\Api\Data\OptionInterfaceFactory::class)
100 $links[] = $this->objectManager->create(\
Magento\Bundle\Api\Data\LinkInterfaceFactory::class)
124 ->create(\
Magento\Catalog\Api\Data\ProductCustomOptionInterfaceFactory::class);
prepareFixture($strategyModifiers, $productSku)
addSimpleProduct(\Magento\Catalog\Model\Product $bundleProduct, array $optionsData)
const CUSTOM_OPTION_PRICE_TYPE_FIXED
addCustomOption($code, $value, $product=null)
$productCollectionFactory
const CUSTOM_OPTION_PRICE_TYPE_PERCENT
static getObjectManager()