protected function UbercartCreditCardTestCase::configureGateway in Ubercart 7.3
Same name and namespace in other branches
- 6.2 payment/uc_credit/uc_credit.test \UbercartCreditCardTestCase::configureGateway()
Helper function to configure Credit Card gateway.
1 call to UbercartCreditCardTestCase::configureGateway()
- UbercartCreditCardTestCase::setUp in payment/
uc_credit/ tests/ uc_credit.test - Implements DrupalWebTestCase::setUp().
File
- payment/
uc_credit/ tests/ uc_credit.test, line 123 - Credit card payment method tests.
Class
- UbercartCreditCardTestCase
- Tests credit card payments with the test gateway.
Code
protected function configureGateway() {
$this
->drupalPost('admin/store/settings/payment/method/credit', array(
'uc_payment_credit_gateway' => 'test_gateway',
'uc_pg_test_gateway_enabled' => TRUE,
), t('Save configuration'));
$this
->assertFieldByName('uc_pg_test_gateway_enabled', TRUE, t('Test gateway is enabled'));
}