You are here

function PaymentTestPaymentValidationWebTestCase::setUp in Payment 7

Overrides parent::setUp().

Overrides PaymentWebTestCase::setUp

File

tests/payment_test/tests/PaymentTestPaymentValidationWebTestCase.test, line 24
Contains class PaymentTestPaymentValidationWebTestCase.

Class

PaymentTestPaymentValidationWebTestCase
Tests payment validation.

Code

function setUp(array $modules = array()) {
  parent::setUp($modules = array(
    'payment',
    'paymentmethodbasic',
    'payment_test',
  ));
  $this->payment_method = new PaymentMethod(array(
    'controller' => payment_method_controller_load('PaymentMethodBasicController'),
  ));
  $this->payment_method->controller->currencies = array(
    'XXX' => array(
      'minimum' => 0.5,
      'maximum' => 20,
    ),
  );
}