You are here

function FileAdminBaseTestCase::setUp in File admin 7

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/file_admin.test, line 17
Tests for file_admin.module.

Class

FileAdminBaseTestCase
Base class for all other tests.

Code

function setUp() {

  // Enable a couple modules.
  parent::setUp('file_admin');
  menu_rebuild();

  // Create an admin user with all the permissions needed to run tests.
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'create files',
    'administer files',
  ));
  $this
    ->drupalLogin($this->admin_user);
}