You are here

public function UbercartFileTestCase::setUp in Ubercart 7.3

Overrides DrupalWebTestCase::setUp().

Overrides UbercartTestHelper::setUp

File

uc_file/tests/uc_file.test, line 24
File download product feature tests.

Class

UbercartFileTestCase
Tests the file download purchase functionality.

Code

public function setUp($modules = array(), $permissions = array()) {
  $modules = array(
    'uc_payment',
    'uc_payment_pack',
    'uc_file',
  );
  $permissions = array();
  parent::setUp($modules, $permissions);

  // Need admin permissions in order to change file download settings.
  $this
    ->drupalLogin($this->adminUser);

  // Set up directory for files to live in.
  $this
    ->configureDownloadDirectory();
}