Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Class: session_manager_test  - X-Ref

Unit tests for session manager class.

test_start()   X-Ref
No description

test_init_empty_session()   X-Ref
No description

test_set_user()   X-Ref
No description

test_login_user()   X-Ref
No description

test_terminate_current()   X-Ref
No description

test_write_close()   X-Ref
No description

test_session_exists()   X-Ref
No description

test_touch_session()   X-Ref
No description

test_kill_session()   X-Ref
No description

test_kill_user_sessions()   X-Ref
No description

test_apply_concurrent_login_limit()   X-Ref
No description

test_kill_all_sessions()   X-Ref
No description

test_gc()   X-Ref
No description

test_loginas()   X-Ref
Test loginas.


test_is_loggedinas()   X-Ref
No description

test_get_realuser()   X-Ref
No description

pages_sessionlocks()   X-Ref
Session lock info on pages.

return: array

test_get_recent_session_locks()   X-Ref
Test to get recent session locks.


test_update_recent_session_locks()   X-Ref
Test to update recent session locks.


test_get_session_lock_info()   X-Ref
Test to get session lock info.


sessionlock_history()   X-Ref
Session lock info on some pages to serve as history.

return: array

sessionlocks_info_provider()   X-Ref
Data provider for test_get_locked_page_at function.

return: array

test_get_locked_page_at($url, $time)   X-Ref
Test to get locked page at a speficic timestamp.

param: array $url Session lock page url.
param: array $time Session lock time.

test_cleanup_recent_session_locks()   X-Ref
Test cleanup recent session locks.


test_array_session_diff_same_array()   X-Ref
No description

test_array_session_diff_first_array_larger()   X-Ref
No description

test_array_session_diff_second_array_larger()   X-Ref
No description