Sylius\Behat\Page\Shop\Cart\SummaryPageInterface::getItemUnitRegularPrice PHP Méthode

getItemUnitRegularPrice() public méthode

public getItemUnitRegularPrice ( string $productName ) : string
$productName string
Résultat string
    public function getItemUnitRegularPrice($productName);

Usage Example

Exemple #1
0
 /**
  * @Then /^(its|theirs) price should be decreased by ("[^"]+")$/
  * @Then /^(product "[^"]+") price should be decreased by ("[^"]+")$/
  */
 public function itsPriceShouldBeDecreasedBy(ProductInterface $product, $amount)
 {
     $this->summaryPage->open();
     $quantity = $this->summaryPage->getQuantity($product->getName());
     $itemTotal = $this->summaryPage->getItemTotal($product->getName());
     $regularUnitPrice = $this->summaryPage->getItemUnitRegularPrice($product->getName());
     Assert::same($quantity * $regularUnitPrice - $amount, $this->getPriceFromString($itemTotal), 'Price after discount should be %s, but it is %2$s.');
 }