Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::hasProductUnitPrice PHP Метод

hasProductUnitPrice() публичный Метод

public hasProductUnitPrice ( Sylius\Component\Core\Model\ProductInterface $product, string $price ) : boolean
$product Sylius\Component\Core\Model\ProductInterface
$price string
Результат boolean
    public function hasProductUnitPrice(ProductInterface $product, $price);

Usage 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));
 }