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 |
message_popup_externallib_testcase:: (8 methods):
setUp()
test_get_popup_notifications_no_user_exception()
test_get_popup_notifications_access_denied_exception()
test_get_popup_notifications_as_recipient()
test_get_popup_notification_limit_offset()
test_get_unread_popup_notification_count_invalid_user_exception()
test_get_unread_popup_notification_count_access_denied_exception()
test_get_unread_popup_notification_count()
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. |