You are here

public function AutologoutAjaxTestCase::setUp in Automated Logout 7.4

Same name and namespace in other branches
  1. 6.4 tests/autologout.test \AutologoutAjaxTestCase::setUp()

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

Overrides DrupalWebTestCase::setUp

File

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

Class

AutologoutAjaxTestCase
Test the Autologout ajax endpoints.

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',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}