You are here

public function SessionLimitLogoutTestCase::testSessionLogoutOnMax1 in Session Limit 7.2

Same name and namespace in other branches
  1. 8 tests/session_limit.test \SessionLimitLogoutTestCase::testSessionLogoutOnMax1()
  2. 6.2 tests/session_limit.test \SessionLimitLogoutTestCase::testSessionLogoutOnMax1()
  3. 2.x tests/session_limit.test \SessionLimitLogoutTestCase::testSessionLogoutOnMax1()

Test user can only have 1 session, logout oldest.

File

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

Class

SessionLimitLogoutTestCase
Session limit functions when expected behaviour is to logout oldest session.

Code

public function testSessionLogoutOnMax1() {

  // Set the default session limit.
  variable_set('session_limit_max', 1);
  $this
    ->assertSessionLogout(1);
  $this
    ->closeAllSessions();
}