getPromotionTotal() public method

public getPromotionTotal ( ) : string
return string
コード例 #1
0
ファイル: CartContext.php プロジェクト: sylius/sylius
 /**
  * @Given /^there should be no discount$/
  */
 public function thereShouldBeNoDiscount()
 {
     $this->summaryPage->open();
     try {
         $this->summaryPage->getPromotionTotal();
     } catch (ElementNotFoundException $exception) {
         return;
     }
     throw new \DomainException('Get promotion total should throw an exception!');
 }
コード例 #2
0
ファイル: CartContext.php プロジェクト: okwinza/Sylius
 /**
  * @Then my cart promotions should be :promotionsTotal
  * @Then my discount should be :promotionsTotal
  */
 public function myDiscountShouldBe($promotionsTotal)
 {
     $this->summaryPage->open();
     Assert::same($this->summaryPage->getPromotionTotal(), $promotionsTotal, 'Promotion total value should be %2$s, but it is %s.');
 }