6 declare(strict_types=1);
17 use PHPUnit\Framework\TestCase;
24 private $getProductSalableQty;
29 private $productRepository;
34 private $websiteRepository;
39 private $stockManagement;
44 private $defaultStockProvider;
49 private $isProductSalable;
75 $this->getProductSalableQty->execute(
'simple', $this->defaultStockProvider->getId())
79 $this->getProductSalableQty->execute(
'custom-design-simple-product', $this->defaultStockProvider->getId())
82 $bundleOptionProduct1 = $this->productRepository->get(
'simple');
83 $bundleOptionProduct2 = $this->productRepository->get(
'custom-design-simple-product');
84 $website = $this->websiteRepository->get(
'base');
85 $this->stockManagement->registerProductsSale(
88 $bundleOptionProduct1->getId() => 10,
89 $bundleOptionProduct2->getId() => 10,
96 $this->getProductSalableQty->execute(
'simple', $this->defaultStockProvider->getId())
100 $this->getProductSalableQty->execute(
'custom-design-simple-product', $this->defaultStockProvider->getId())
testRegisterProductsSale()
static getObjectManager()