public function SessionLimitLogoutTestCase::testSessionLogoutOnMax2 in Session Limit 6.2
Same name and namespace in other branches
- 8 tests/session_limit.test \SessionLimitLogoutTestCase::testSessionLogoutOnMax2()
- 7.2 tests/session_limit.test \SessionLimitLogoutTestCase::testSessionLogoutOnMax2()
- 2.x tests/session_limit.test \SessionLimitLogoutTestCase::testSessionLogoutOnMax2()
Test user can only have 2 sessions, logout oldest.
File
- tests/session_limit.test, line 425 
- Simpletest tests for session_limit.
Class
- SessionLimitLogoutTestCase
- Session limit functions when expected behaviour is to logout oldest session.
Code
public function testSessionLogoutOnMax2() {
  // Set the default session limit.
  variable_set('session_limit_max', 2);
  $this
    ->assertSessionLogout(2);
  $this
    ->closeAllSessions();
}