Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

External message popup functions unit tests

Copyright: 2016 Ryan Wyllie <ryan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 197 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: message_popup_externallib_testcase  - 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.