Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 401 and 403]

(no description)

File Size: 310 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.

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.