/** * @Then /^(this variant) should still exist in the product catalog$/ */ public function productShouldExistInTheProductCatalog(ProductVariantInterface $productVariant) { $this->theProductVariantShouldAppearInTheShop($productVariant->getCode(), $productVariant->getProduct()); }
/** * @Then /^(this variant) should not exist in the product catalog$/ */ public function productVariantShouldNotExistInTheProductCatalog(ProductVariantInterface $productVariant) { Assert::null($this->productVariantRepository->findOneBy(['code' => $productVariant->getCode()])); }