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]

BBB Library tests class.

Author: Laurent David (laurent@call-learning.fr)
Copyright: 2018 - present, Blindside Networks Inc
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 769 lines (31 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: lib_test  - X-Ref

BBB Library tests class.

test_bigbluebuttonbn_supports()   X-Ref
Check support


test_bigbluebuttonbn_add_instance()   X-Ref
Check add instance


test_bigbluebuttonbn_update_instance()   X-Ref
Check update instance


test_bigbluebuttonbn_delete_instance()   X-Ref
Check delete instance


test_bigbluebuttonbn_delete_instance_with_running_meeting()   X-Ref
Check delete instance


test_bigbluebuttonbn_delete_instance_with_running_group_meetings()   X-Ref
Check delete instance


test_bigbluebuttonbn_user_outline()   X-Ref
Check user outline page


test_bigbluebuttonbn_user_complete()   X-Ref
Check user completion


test_bigbluebuttonbn_get_recent_mod_activity()   X-Ref
Check get recent activity


prepare_for_recent_activity_array($date, $user, $group)   X-Ref
No description

test_bigbluebuttonbn_print_recent_mod_activity()   X-Ref
Check user recent activity


test_bigbluebuttonbn_print_recent_activity()   X-Ref
Check recent activity for the course


test_bigbluebuttonbn_get_extra_capabilities()   X-Ref
Check extra capabilities return value


test_bigbluebuttonbn_reset_course_form_definition()   X-Ref
Check form definition


test_bigbluebuttonbn_reset_course_form_defaults()   X-Ref
Check defaults for form


test_bigbluebuttonbn_reset_userdata()   X-Ref
Reset user data


test_bigbluebuttonbn_reset_userdata_in_a_course()   X-Ref
Reset user data in a course and checks it does not delete logs elsewhere


test_bigbluebuttonbn_reset_userdata_logs_not_deleted()   X-Ref
Reset user data in a course but do not delete logs


test_bigbluebuttonbn_get_coursemodule_info()   X-Ref
Check course module


test_bigbluebuttonbn_check_updates_since()   X-Ref
Check update since


test_mod_bigbluebuttonbn_core_calendar_provide_event_action()   X-Ref
Check event action (calendar)


create_action_event(stdClass $course, stdClass $bbbactivity, string $eventtype)   X-Ref
Creates an action event.

param: stdClass $course The course the bigbluebutton activity is in
param: stdClass $bbbactivity The bigbluebutton activity to create an event for
param: string $eventtype The event type. eg. ASSIGN_EVENT_TYPE_DUE.
return: bool|calendar_event

test_bigbluebuttonbn_extend_settings_navigation_admin()   X-Ref
Test setting navigation admin menu


test_bigbluebuttonbn_extend_settings_navigation_user()   X-Ref
Check additional setting menu


test_mod_bigbluebuttonbn_core_calendar_is_event_visible()   X-Ref
Check the visibility on calendar


test_bigbluebuttonbn_pre_enable_plugin_actions(?bool $initialstate,bool $expected,int $notificationcount)   X-Ref
Check the bigbluebuttonbn_pre_enable_plugin_actions function.

param: bool $initialstate
param: bool $expected
param: int $notificationcount

test_enable_plugin(?bool $initialstate,bool $expected,int $notificationcount)   X-Ref
Check the bigbluebuttonbn_pre_enable_plugin_actions function.

param: bool $initialstate
param: bool $expected
param: int $notificationcount

bigbluebuttonbn_pre_enable_plugin_actions_provider()   X-Ref
Data provider for bigbluebuttonbn_pre_enable_plugin_actions tests.

return: array