See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 39 and 401]
Contains class containing unit tests for mod/chat/lib.php.
Copyright: | 2017 Mark Nelson <markn@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 743 lines (31 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
lib_test:: (18 methods):
setUp()
test_chat_core_calendar_provide_event_action_in_hidden_section()
test_chat_core_calendar_provide_event_action_for_non_user()
test_chat_core_calendar_provide_event_action_chattime_event_yesterday()
test_chat_core_calendar_provide_event_action_chattime_event_yesterday_for_user()
test_chat_core_calendar_provide_event_action_chattime_event_today()
test_chat_core_calendar_provide_event_action_chattime_event_today_for_user()
test_chat_core_calendar_provide_event_action_chattime_event_tonight()
test_chat_core_calendar_provide_event_action_chattime_event_tonight_for_user()
test_chat_core_calendar_provide_event_action_chattime_event_tomorrow()
test_chat_core_calendar_provide_event_action_chattime_event_tomorrow_for_user()
test_chat_core_calendar_provide_event_action_chattime_event_different_timezones()
test_chat_get_sessions()
test_chat_get_sessions_multiple()
test_chat_core_calendar_provide_event_action_already_completed()
test_chat_core_calendar_provide_event_action_already_completed_for_user()
create_action_event()
test_creation_with_no_calendar_capabilities()
setUp() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_in_hidden_section() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_for_non_user() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_yesterday() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_yesterday_for_user() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_today() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_today_for_user() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_tonight() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_tonight_for_user() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_tomorrow() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_tomorrow_for_user() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_chattime_event_different_timezones() X-Ref |
No description |
test_chat_get_sessions() X-Ref |
Test for chat_get_sessions(). |
test_chat_get_sessions_multiple() X-Ref |
Test for chat_get_sessions with messages belonging to multiple sessions. |
test_chat_core_calendar_provide_event_action_already_completed() X-Ref |
No description |
test_chat_core_calendar_provide_event_action_already_completed_for_user() X-Ref |
No description |
create_action_event($courseid, $instanceid, $eventtype) X-Ref |
Creates an action event. param: int $courseid param: int $instanceid The chat id. param: string $eventtype The event type. eg. ASSIGN_EVENT_TYPE_DUE. return: bool|calendar_event |
test_creation_with_no_calendar_capabilities() X-Ref |
A user who does not have capabilities to add events to the calendar should be able to create an chat. |