You are here

protected function UbercartRolesTestCase::setUp in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_roles/uc_roles.test \UbercartRolesTestCase::setUp()

Overrides DrupalWebTestCase::setUp().

Overrides UbercartTestHelper::setUp

File

uc_roles/tests/uc_roles.test, line 24
Role assignment product feature tests.

Class

UbercartRolesTestCase
Tests the role purchase functionality.

Code

protected function setUp($modules = array(), $permissions = array()) {
  $modules = array(
    'uc_payment',
    'uc_payment_pack',
    'uc_roles',
  );

  // Needed to see/modify roles on the /user/%/edit page.
  $permissions = array(
    'administer permissions',
    'administer users',
    'view all role expirations',
  );
  parent::setUp($modules, $permissions);
}