getItemDiscount() public method

public getItemDiscount ( string $itemName ) : string
$itemName string
return string
Example #1
0
 /**
  * @Then /^(its) discount should be ([^"]+)$/
  * @Then the :itemName should have :discount discount
  */
 public function theItemShouldHaveDiscount($itemName, $discount)
 {
     $itemDiscountOnPage = $this->showPage->getItemDiscount($itemName);
     Assert::eq($itemDiscountOnPage, $discount, 'Item discount is %s, but should be %s.');
 }