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.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 319 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: send_login_notifications_test  - X-Ref

Contains tests for login related notifications.

setUpBeforeClass()   X-Ref
Load required classes


test_login_notification()   X-Ref
Test new login notification.


test_login_notification_skip_same_ip()   X-Ref
Test new login notification is skipped because of same IP from last login.


test_login_notification_skip_same_browser()   X-Ref
Test new login notification is skipped because of same browser from last login.


test_login_notification_skip_mobileapp()   X-Ref
Test new login notification is skipped because of auto-login from the mobile app (skip duplicated notifications).


test_login_notification_custom_change_password_url()   X-Ref
Test new login notification where the user auth method provides a custom change password URL


test_mobile_app_login_notification()   X-Ref
Test new mobile app login notification.


test_mobile_app_login_notification_skip_same_ip()   X-Ref
Test new mobile app login notification skipped becase of same last ip.


test_mobile_app_login_notification_skip_same_device()   X-Ref
Test new mobile app login notification skipped becase of same device.