PHP Класс CouponsTest

Наследование: extends Orchestra\Testbench\TestCase, use trait LukePOLO\LaraCart\Tests\LaraCartTestTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

testAddFixedCoupon() публичный Метод

Test the fixed coupons.
public testAddFixedCoupon ( )

testAddPercentageCoupon() публичный Метод

Test the percentage coupons.

testCheckMinAmount() публичный Метод

Test the min amount for a coupon.
public testCheckMinAmount ( )

testCheckValidTimes() публичный Метод

Test the valid times for a coupon.
public testCheckValidTimes ( )

testCouponMessage() публичный Метод

Testing getting the message on a coupon.
public testCouponMessage ( )

testGetMessage() публичный Метод

Test getting the message from the coupon to see if its valid or has an error.
public testGetMessage ( )

testMaxDiscount() публичный Метод

Test the max discount for a coupon.
public testMaxDiscount ( )

testMultipleCoupons() публичный Метод

Test if we can add multiple if the config is set properly.
public testMultipleCoupons ( )

testRemoveCoupon() публичный Метод

Test removing coupons.
public testRemoveCoupon ( )

testRemoveCoupons() публичный Метод

Test if we can remove all coupons from the cart.
public testRemoveCoupons ( )

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.
public testSingleCoupons ( )