You are here

public function AutologoutTestSessionCleanupOnLogin::setUp in Automated Logout 7.4

setUp() performs any pre-requisite tasks that need to happen.

Overrides DrupalWebTestCase::setUp

File

tests/autologout.test, line 33
Simpletest tests for autologout.

Class

AutologoutTestSessionCleanupOnLogin
Test session cleanup on login.

Code

public function setUp() {

  // Enable any modules required for the test.
  parent::setUp('autologout');

  // Create and log in our privileged user.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'access content',
    'administer site configuration',
    'access site reports',
    'access administration pages',
    'bypass node access',
    'administer content types',
    'administer nodes',
    'administer autologout',
    'change own logout threshold',
  ));
}