public function AutologoutTestCase::assertAutotimeout in Automated Logout 7.4
Same name and namespace in other branches
- 6.4 tests/autologout.test \AutologoutTestCase::assertAutotimeout()
Assert the timeout for a particular user.
Parameters
int $uid: User uid to assert the timeout for.
int $expected_timeout: The expected timeout.
string $message: The test message
string $group: The test grouping
1 call to AutologoutTestCase::assertAutotimeout()
- AutologoutTestCase::testAutologoutTimeoutPrecedence in tests/
autologout.test - Test the precedence of the timeouts.
File
- tests/
autologout.test, line 476 - Simpletest tests for autologout.
Class
- AutologoutTestCase
- Tests the autologout's features.
Code
public function assertAutotimeout($uid, $expected_timeout, $message = '', $group = '') {
return $this
->assertEqual(_autologout_get_user_timeout($uid), $expected_timeout, $message, $group);
}