Sylius\Behat\Context\Setup\ProductContext::thereAreItemsOfProductInVariantAvailableInTheInventory PHP Method

thereAreItemsOfProductInVariantAvailableInTheInventory() public method

public thereAreItemsOfProductInVariantAvailableInTheInventory ( $quantity, Sylius\Component\Core\Model\ProductVariantInterface $productVariant )
$productVariant Sylius\Component\Core\Model\ProductVariantInterface
    public function thereAreItemsOfProductInVariantAvailableInTheInventory($quantity, ProductVariantInterface $productVariant)
    {
        $productVariant->setTracked(true);
        $productVariant->setOnHand($quantity);
        $this->objectManager->flush();
    }