Coupon : spelling
This commit is contained in:
@@ -128,7 +128,7 @@ class Coupon extends BaseAction implements EventSubscriberInterface
|
|||||||
// @todo move this part in after order event
|
// @todo move this part in after order event
|
||||||
$couponQuery = CouponQuery::create();
|
$couponQuery = CouponQuery::create();
|
||||||
$couponModel = $couponQuery->findOneByCode($coupon->getCode());
|
$couponModel = $couponQuery->findOneByCode($coupon->getCode());
|
||||||
$couponManager->decrementeQuantity($couponModel);
|
$couponManager->decrementQuantity($couponModel);
|
||||||
|
|
||||||
$request
|
$request
|
||||||
->getSession()
|
->getSession()
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ class CouponManager
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function decrementeQuantity(Coupon $coupon)
|
public function decrementQuantity(Coupon $coupon)
|
||||||
{
|
{
|
||||||
$ret = true;
|
$ret = true;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class CouponManagerTest extends \PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers Thelia\Coupon\CouponManager::decrementeQuantity
|
* @covers Thelia\Coupon\CouponManager::decrementQuantity
|
||||||
* @todo Implement testDecrementeQuantity().
|
* @todo Implement testDecrementeQuantity().
|
||||||
*/
|
*/
|
||||||
public function testDecrementeQuantity()
|
public function testDecrementeQuantity()
|
||||||
|
|||||||
Reference in New Issue
Block a user