You are here

protected function CommercePaymentCreditCardTest::setUp in Commerce Core 7

Sets up unit test environment.

Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.

Overrides DrupalUnitTestCase::setUp

File

modules/payment/tests/commerce_payment_credit_card.test, line 27
Unit tests for credit card detection.

Class

CommercePaymentCreditCardTest
Tests credit card detection.

Code

protected function setUp() {
  parent::setUp();
  module_load_include('inc', 'commerce_payment', 'includes/commerce_payment.credit_card');
}