/** * @Then /^(this product review) should still be titled "([^"]+)"$/ */ public function thisProductReviewTitleShouldBeTitled(ReviewInterface $productReview, $productReviewTitle) { $this->iWantToBrowseProductReviews(); Assert::true($this->indexPage->isSingleResourceOnPage(['title' => $productReviewTitle]), sprintf('Product review title %s has not been assigned properly.', $productReviewTitle)); }
/** * @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())); }