You are here

public function UbercartCreditCardTestCase::setUp in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 payment/uc_credit/tests/uc_credit.test \UbercartCreditCardTestCase::setUp()

Implements DrupalWebTestCase::setUp().

Overrides UbercartTestHelper::setUp

File

payment/uc_credit/uc_credit.test, line 60
Credit card payment method tests.

Class

UbercartCreditCardTestCase
Tests the credit card payments with the test gateway.

Code

public function setUp() {
  $modules = array(
    'uc_payment',
    'uc_credit',
    'test_gateway',
  );
  $permissions = array(
    'administer credit cards',
    'process credit cards',
  );
  parent::setUp($modules, $permissions);

  // Need admin permissions in order to change credit card settings.
  $this
    ->drupalLogin($this->adminUser);

  // Configure and enable Credit card module and Test gateway.
  $this
    ->configureCreditCard();
  $this
    ->configureGateway();
}