Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

Defines 1 class


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.