You are here

function PaymentformWebTestCase::setUp in Payment 7

Overrides parent::setUp().

Overrides PaymentWebTestCase::setUp

2 calls to PaymentformWebTestCase::setUp()
PaymentformTestFieldFormatterWebTestCase::setUp in modules/paymentform/tests/paymentform_test/tests/PaymentformTestFieldFormatterWebTestCase.test
Overrides parent::setUp().
PaymentformTestLineItemFieldWidgetWebTestCase::setUp in modules/paymentform/tests/paymentform_test/tests/PaymentformTestLineItemFieldWidgetWebTestCase.test
Overrides parent::setUp().
2 methods override PaymentformWebTestCase::setUp()
PaymentformTestFieldFormatterWebTestCase::setUp in modules/paymentform/tests/paymentform_test/tests/PaymentformTestFieldFormatterWebTestCase.test
Overrides parent::setUp().
PaymentformTestLineItemFieldWidgetWebTestCase::setUp in modules/paymentform/tests/paymentform_test/tests/PaymentformTestLineItemFieldWidgetWebTestCase.test
Overrides parent::setUp().

File

modules/paymentform/tests/PaymentformWebTestCase.test, line 19
Contains class PaymentformWebTestCase.

Class

PaymentformWebTestCase
Contains functionality shared by Paymentform test cases.

Code

function setUp(array $modules = array()) {
  parent::setUp($modules + array(
    'field',
    'node',
    'paymentform',
  ));
  $this->content_type = $this
    ->drupalCreateContentType();

  // Field configuration.
  $this->field_paymentform = field_create_field(array(
    'field_name' => 'field_paymentform',
    'type' => 'paymentform',
    'cardinality' => 2,
  ));
  $this->field_paymentform_instance = field_create_instance(array(
    'field_name' => 'field_paymentform',
    'entity_type' => 'node',
    'bundle' => $this->content_type->type,
    'widget' => array(
      'type' => 'paymentform_line_item',
    ),
  ));
  $this->PaymentLineItemData = array(
    'amount' => 1.0,
    'description' => 'foo',
    'name' => 'bar',
    'quantity' => 1,
    'tax_rate' => 0.0,
  );
}