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: externallib_test  - X-Ref

Class for external message popup functions unit tests.

setUp()   X-Ref
Test set up.

This is executed before running any test in this file.

test_get_popup_notifications_no_user_exception()   X-Ref
Test that get_popup_notifications throws an exception if the user
doesn't exist.


test_get_popup_notifications_access_denied_exception()   X-Ref
get_popup_notifications should throw exception if user isn't logged in
user.


test_get_popup_notifications_as_recipient()   X-Ref
get_popup_notifications should return notifications for the recipient.


test_get_popup_notification_limit_offset()   X-Ref
get_popup_notifications result set should work with limit and offset.


test_get_unread_popup_notification_count_invalid_user_exception()   X-Ref
get_unread_popup_notification should throw an exception for an invalid user.


test_get_unread_popup_notification_count_access_denied_exception()   X-Ref
get_unread_popup_notification_count should throw exception if being requested for
non-logged in user.


test_get_unread_popup_notification_count()   X-Ref
Test get_unread_popup_notification_count.