Метод |
Описание |
|
testAddFixedCoupon ( ) |
Test the fixed coupons. |
|
testAddPercentageCoupon ( ) |
Test the percentage coupons. |
|
testCheckMinAmount ( ) |
Test the min amount for a coupon. |
|
testCheckValidTimes ( ) |
Test the valid times for a coupon. |
|
testCouponMessage ( ) |
Testing getting the message on a coupon. |
|
testGetMessage ( ) |
Test getting the message from the coupon to see if its valid or has an error. |
|
testMaxDiscount ( ) |
Test the max discount for a coupon. |
|
testMultipleCoupons ( ) |
Test if we can add multiple if the config is set properly. |
|
testRemoveCoupon ( ) |
Test removing coupons. |
|
testRemoveCoupons ( ) |
Test if we can remove all coupons from the cart. |
|
testSetDiscountOnItem ( ) |
Test if we can set a coupon on an item. |
|
testSingleCoupons ( ) |
Test if single coupons works, we souldn't be able to add two. |
|