Sylius\Behat\Page\Shop\Cart\SummaryPageInterface::getItemTotal PHP Method

getItemTotal() public method

public getItemTotal ( string $productName ) : string
$productName string
return string
    public function getItemTotal($productName);

Usage Example

Ejemplo n.º 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();
     $discountedTotal = $this->summaryPage->getItemDiscountedTotal($product->getName());
     $total = $this->summaryPage->getItemTotal($product->getName());
     Assert::same($discountedTotal, $total - $amount, 'Price after discount should be %2$s, but it is %s.');
 }
All Usage Examples Of Sylius\Behat\Page\Shop\Cart\SummaryPageInterface::getItemTotal