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