You are here

function CommercePayleapTest::setUp in Commerce Payleap 7

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/commerce_payleap.test, line 32
Functional tests for the commerce payment module user interface.

Class

CommercePayleapTest
Test payment user interface.

Code

function setUp() {
  $modules = parent::setUpHelper('all');
  $modules[] = 'commerce_payleap';
  parent::setUp($modules);

  // User creation for different operations.
  $this->store_admin = $this
    ->createStoreAdmin();
  $this->store_customer = $this
    ->createStoreCustomer();
  cache_clear_all();

  // The rule that sends a mail after checkout completion should be disabled
  //  as it returns an error caused by how mail messages are stored.
  $rules_config = rules_config_load('commerce_checkout_order_email');
  $rules_config->active = FALSE;
  $rules_config
    ->save();
}