You are here

function CommerceUPSAdministrationTestCase::setUp in Commerce UPS 7.2

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

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/commerce_ups.test, line 31
This will allows me to test the commerce ups module.

Class

CommerceUPSAdministrationTestCase
Administration tests for Commerce UPS.

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);
}