Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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.