本文整理汇总了PHP中Sylius\Component\Core\Model\ProductInterface::getSlug方法的典型用法代码示例。如果您正苦于以下问题:PHP ProductInterface::getSlug方法的具体用法?PHP ProductInterface::getSlug怎么用?PHP ProductInterface::getSlug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sylius\Component\Core\Model\ProductInterface
的用法示例。
在下文中一共展示了ProductInterface::getSlug方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: iWantToReviewProduct
/**
* @Given I want to review product :product
*/
public function iWantToReviewProduct(ProductInterface $product)
{
$this->createPage->open(['slug' => $product->getSlug()]);
}
示例2: iShouldBeOnProductDetailedPage
/**
* @Then I should be on :product product detailed page
*/
public function iShouldBeOnProductDetailedPage(ProductInterface $product)
{
Assert::true($this->showPage->isOpen(['slug' => $product->getSlug()]), sprintf('Product %s show page should be open, but it does not.', $product->getName()));
}
示例3: thisProductAverageRatingShouldBe
/**
* @Then /^average rating of (product "[^"]+") should be (\d+)$/
*/
public function thisProductAverageRatingShouldBe(ProductInterface $product, $averageRating)
{
$this->showPage->tryToOpen(['slug' => $product->getSlug()]);
$this->iShouldSeeAsItsAverageRating($averageRating);
}
示例4: iCheckThisProductSReviews
/**
* @When /^I check (this product)'s reviews$/
*/
public function iCheckThisProductSReviews(ProductInterface $product)
{
$this->productReviewsIndexPage->open(['slug' => $product->getSlug()]);
}