diff --git a/core/lib/Thelia/Action/Coupon.php b/core/lib/Thelia/Action/Coupon.php index 90dded5a8..b68b27572 100755 --- a/core/lib/Thelia/Action/Coupon.php +++ b/core/lib/Thelia/Action/Coupon.php @@ -128,7 +128,7 @@ class Coupon extends BaseAction implements EventSubscriberInterface // @todo move this part in after order event $couponQuery = CouponQuery::create(); $couponModel = $couponQuery->findOneByCode($coupon->getCode()); - $couponManager->decrementeQuantity($couponModel); + $couponManager->decrementQuantity($couponModel); $request ->getSession() diff --git a/core/lib/Thelia/Coupon/CouponManager.php b/core/lib/Thelia/Coupon/CouponManager.php index 4bc3aed0e..4f075f989 100644 --- a/core/lib/Thelia/Coupon/CouponManager.php +++ b/core/lib/Thelia/Coupon/CouponManager.php @@ -239,7 +239,7 @@ class CouponManager * * @return bool */ - public function decrementeQuantity(Coupon $coupon) + public function decrementQuantity(Coupon $coupon) { $ret = true; try { diff --git a/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php b/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php index 07c6bc597..d89f4c81c 100644 --- a/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php +++ b/core/lib/Thelia/Tests/Coupon/CouponManagerTest.php @@ -115,7 +115,7 @@ class CouponManagerTest extends \PHPUnit_Framework_TestCase } /** - * @covers Thelia\Coupon\CouponManager::decrementeQuantity + * @covers Thelia\Coupon\CouponManager::decrementQuantity * @todo Implement testDecrementeQuantity(). */ public function testDecrementeQuantity()