You are here

function CommerceUPSAdministrationTestCase::setUp in Commerce UPS 7

Same name and namespace in other branches
  1. 7.2 tests/commerce_ups.test \CommerceUPSAdministrationTestCase::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/commerce_ups.test, line 26

Class

CommerceUPSAdministrationTestCase
Administration tests for my module.

Code

function setUp() {
  $modules = parent::setUpHelper('all');
  $final_modules = array_unique(array_merge($modules, array(
    'commerce_ups',
  )));
  parent::setUp($final_modules);
  $permissions = parent::permissionBuilder('all');
  $final_permissions = array_unique(array_merge($permissions, array(
    'administer shipping',
  )));
  $user = $this
    ->drupalCreateUser($final_permissions);
  $this
    ->drupalLogin($user);

  //$this->site_admin = $this->createSiteAdmin();
}