/**
  * @Then /^(this product) should no longer have price for channel "([^"]+)"$/
  */
 public function thisProductShouldNoLongerHavePriceForChannel(ProductInterface $product, $channelName)
 {
     $this->updateSimpleProductPage->open(['id' => $product->getId()]);
     try {
         $this->updateSimpleProductPage->getPriceForChannel($channelName);
     } catch (ElementNotFoundException $exception) {
         return;
     }
     throw new \Exception(sprintf('Product "%s" should not have price defined for channel "%s".', $product->getName(), $channelName));
 }
 /**
  * @Then /^(product "[^"]+") should not have a "([^"]+)" attribute$/
  */
 public function productShouldNotHaveAttribute(ProductInterface $product, $attribute)
 {
     $this->updateSimpleProductPage->open(['id' => $product->getId()]);
     Assert::false($this->updateSimpleProductPage->hasAttribute($attribute), sprintf('Product "%s" should not have attribute "%s" but it does.', $product->getName(), $attribute));
 }
 /**
  * @Then /^the slug of the ("[^"]+" product) should(?:| still) be "([^"]+)"$/
  */
 public function productSlugShouldBe(ProductInterface $product, $slug)
 {
     $this->updateSimpleProductPage->open(['id' => $product->getId()]);
     Assert::true($this->updateSimpleProductPage->hasResourceValues(['slug' => $slug]), sprintf('Product\'s slug should be %s.', $slug));
 }