getItemUnitRegularPrice() public method

public getItemUnitRegularPrice ( string $productName ) : string
$productName string
return string
コード例 #1
0
ファイル: CartContext.php プロジェクト: sylius/sylius
 /**
  * @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.');
 }