You are here

public function UcAddressesCartCheckoutTestCase::setUp in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 tests/uc_addresses.checkout.test \UcAddressesCartCheckoutTestCase::setUp()

Setup modules.

Overrides UbercartCartCheckoutTestCase::setUp

File

tests/uc_addresses.checkout.test, line 29
Test cases for checkout.

Class

UcAddressesCartCheckoutTestCase
Test cases for checkout.

Code

public function setUp($modules = array(), $permissions = array()) {
  parent::setUp($modules, $permissions);

  // Install Ubercart Addresses and flush schema cache.
  module_enable(array(
    'ctools',
    'uc_addresses',
  ));
  drupal_get_schema(NULL, TRUE);

  // Reset permissions so that Ubercart Addresses permissions are available.
  $this
    ->checkPermissions(array(), TRUE);
}