Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 400 and 401]

Meeting test.

Author: Jesus Federico (jesus [at] blindsidenetworks [dt] com)
Copyright: 2018 - present, Blindside Networks Inc
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 482 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: meeting_test  - X-Ref

Meeting tests class.

setUp()   X-Ref
Setup Test


get_instance_types_meeting_info()   X-Ref
Get a list of possible test (dataprovider)

return: array[]

test_create_meeting(int $type, ?string $groupname)   X-Ref
Test that create meeing is working for all types.

param: int $type
param: string|null $groupname

test_get_meeting_info(int $type, ?string $groupname)   X-Ref
Test for get meeting info for all types

param: int $type
param: string|null $groupname

test_can_join(int $type, ?string $groupname, int $groupmode, array $canjoin)   X-Ref
Test can join is working for all types

param: int $type
param: string|null $groupname
param: int $groupmode
param: array $canjoin

test_can_join_with_dates(int $type, ?string $groupname, int $groupmode, array $canjoin, array $dates)   X-Ref
Test can join is working if opening/closing time are set

param: int $type
param: string|null $groupname
param: int $groupmode
param: array $canjoin
param: array $dates

test_join_wait_for_moderator_not_joined()   X-Ref
Test can join is working if the "Wait for moderator to join" setting is set and a moderator has not yet joined.


test_join_wait_for_moderator_is_joined()   X-Ref
Test can join is working if the "Wait for moderator to join" setting is set and a moderator has already joined.


test_join_user_limit_reached()   X-Ref
Test can join is working if the "user limit" setting is set and reached.


test_get_attendees()   X-Ref
Test that attendees returns the right list of attendees


test_participant_count()   X-Ref
Test that attendees returns the right list of attendees


join_meeting(string $url)   X-Ref
Send a join meeting API CALL

param: string $url

get_data_can_join_with_dates()   X-Ref
Get a list of possible test (dataprovider)

return: array[]

prepare_meeting(int $type, ?string $groupname, int $groupmode = SEPARATEGROUPS, bool $createmeeting = true,array $dates = [])   X-Ref
Helper to prepare for a meeting

param: int $type
param: string|null $groupname
param: int $groupmode
param: bool $createmeeting
param: array $dates
return: array