\DPSPaymentTest
The unit testing for DPS payment The testings cannot be run through without defining four Constants: DPSPAY_USERID_TEST, DPSPAY_KEY_TEST, DPSPAY_USERID_TEST, DPSPAY_KEY_TEST The testings cannot be run through without setting the above four constants to DPSAdapter correctly.
Synopsis
class DPSPaymentTest
extends SapphireTest
implements
TestOnly
{
- // members
- public static array $right_cc_data = ;
- public static array $wrong_cc_data = ;
- // methods
- public static void get_right_cc_data()
- public static void get_wrong_cc_data()
- public static void get_expired_cc_data()
- public void setUp()
- public void checkCredentials()
- public void checkConnection()
- public void createAPayment()
- public void createARecurringPayment()
- public void testAuthSuccess()
- public void testAuthFailure()
- public void testCompleteSuccess()
- public void testCompleteFailure()
- public void testCompleteOnlyOnce()
- public void testPurchaseSuccess()
- public void testPurchaseFailure()
- public void testRefundSuccess()
- public void testRefundFailure()
- public void testMultipleRefund()
- public void testRecurringDPSPayment()
- public void testDPShostedPurchase()
- public void testDBTransaction()
Hierarchy
Extends
- SapphireTest
Implements
- TestOnly
Members
public
- $right_cc_data
- $wrong_cc_data
Methods
public
- checkConnection()
- checkCredentials()
- createAPayment()
- createARecurringPayment()
- get_expired_cc_data()
- get_right_cc_data()
- get_wrong_cc_data()
- setUp()
- testAuthFailure()
- testAuthSuccess()
- testCompleteFailure()
- testCompleteOnlyOnce()
- testCompleteSuccess()
- testDBTransaction()
- testDPShostedPurchase()
- testMultipleRefund()
- testPurchaseFailure()
- testPurchaseSuccess()
- testRecurringDPSPayment()
- testRefundFailure()
- testRefundSuccess()