Tests for external function mod_chat_view_sessions.
Copyright: | 2022 Rodrigo Mady <rodrigo.mady@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 133 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
view_sessions_test:: (6 methods):
prepare_test_data()
view_sessions()
test_view_sessions()
test_view_sessions_without_capability()
test_view_sessions_with_start_end_dates()
test_view_sessions_no_instance()
Class: view_sessions_test - X-Ref
Test Class for external function mod_chat_view_sessions.prepare_test_data() X-Ref |
Prepare the test. return: array |
view_sessions(int $cmid, int $sessionstart = 0, int $sessionend = 0) X-Ref |
Helper to call view_sessions WS function. param: int $cmid param: int $sessionstart param: int $sessionend return: array |
test_view_sessions() X-Ref |
Test for webservice view sessions. |
test_view_sessions_without_capability() X-Ref |
Test for webservice view sessions without capability. |
test_view_sessions_with_start_end_dates() X-Ref |
Test for webservice view sessions with start and end dates. |
test_view_sessions_no_instance() X-Ref |
Test execute with no valid instance of cmid. |