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