You are here

public function SessionLimitPreventTestCase::setUp in Session Limit 6.2

Same name and namespace in other branches
  1. 8 tests/session_limit.test \SessionLimitPreventTestCase::setUp()
  2. 7.2 tests/session_limit.test \SessionLimitPreventTestCase::setUp()
  3. 2.x tests/session_limit.test \SessionLimitPreventTestCase::setUp()

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

Overrides DrupalWebTestCase::setUp

File

tests/session_limit.test, line 522
Simpletest tests for session_limit.

Class

SessionLimitPreventTestCase
Session limit functionality when behaviour is to prevent login at limit.

Code

public function setUp() {

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

  // D6 simpletest has these variables commented out.
  $this->public_files_directory = variable_get('file_directory_path', '');
  $this->cookieFile = $this->public_files_directory . '/cookie1.jar';
}