/**
  * @When I delete the :productReview product review
  */
 public function iDeleteTheProductReview(ReviewInterface $productReview)
 {
     $this->indexPage->open();
     $this->indexPage->deleteResourceOnPage(['title' => $productReview->getTitle()]);
 }
示例#2
0
 /**
  * @Then /^there should be no reviews of (this product)$/
  */
 public function thereAreNoProductReviews(ProductInterface $product)
 {
     $this->productReviewIndexPage->open();
     Assert::false($this->productReviewIndexPage->isSingleResourceOnPage(['reviewSubject' => $product->getName()]), sprintf('There should be no reviews of %s.', $product->getName()));
 }