コード例 #1
0
ファイル: RemoveXAmountTest.php プロジェクト: thelia/thelia
 /**
  * @covers Thelia\Coupon\Type\RemoveXAmount::getToolTip
  */
 public function testGetToolTip()
 {
     $tooltip = 'This coupon will remove the entered amount to the customer total checkout. If the discount is superior to the total checkout price the customer will only pay the postage. Unless if the coupon is set to remove postage too.';
     $stubFacade = $this->generateFacadeStub(399, 'EUR', $tooltip);
     /** @var FacadeInterface $stubFacade */
     $coupon = new RemoveXAmount($stubFacade);
     $actual = $coupon->getToolTip();
     $expected = $tooltip;
     $this->assertEquals($expected, $actual);
 }