6 declare(strict_types=1);
12 use PHPUnit\Framework\TestCase;
19 private $isProductSalable;
51 $isSalable = $this->isProductSalable->execute($sku, $stockId);
52 self::assertEquals($expectedResult, $isSalable);
94 $isSalable = $this->isProductSalable->execute($sku, $stockId);
95 self::assertEquals($expectedResult, $isSalable);
105 [
'SKU-1', 20,
false],
107 [
'SKU-2', 10,
false],
111 [
'SKU-3', 20,
false],
executeWithManageStockFalseAndMinQty()
executeWithMinQtyDataProvider()
testExecuteWithMinQty(string $sku, int $stockId, bool $expectedResult)
testExecuteWithManageStockFalseAndMinQty(string $sku, int $stockId, bool $expectedResult)
static getObjectManager()