Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::hasProductUnitPrice PHP Method

hasProductUnitPrice() public method

public hasProductUnitPrice ( Sylius\Component\Core\Model\ProductInterface $product, string $price ) : boolean
$product Sylius\Component\Core\Model\ProductInterface
$price string
return boolean
    public function hasProductUnitPrice(ProductInterface $product, $price);

Usage Example

Example #1
0
 /**
  * @Then the :product product should have unit price :price
  */
 public function theProductShouldHaveUnitPrice(ProductInterface $product, $price)
 {
     Assert::true($this->completePage->hasProductUnitPrice($product, $price), sprintf('Product %s should have unit price %s, but it does not have.', $product->getName(), $price));
 }