|
| add_meeting_event (object $user, instance $instance, string $eventtype, string $eventdata='') |
| Trigger a meeting event on BBB side.
|
|
| create_content ($instance, $record=array()) |
| Generates a piece of content for the module.
|
|
| create_instance ($record=null, array $options=null) |
| Creates an instance of bigbluebuttonbn for testing purposes.
|
|
| create_log ($record, array $options=null) |
| Create a log record.
|
|
| create_meeting (array $data) |
| Mock an in-progress meeting on the remote server.
|
|
| create_recording (array $data, $serveronly=false) |
| Create a recording for the given bbb activity.
|
|
| get_modulename () |
| Returns module name.
|
|
| reset () |
| To be called from data reset code only, do not use in tests.
|
|
| reset_mock () |
| Reset the mock server.
|
|
| send_all_events (instance $instance) |
| Send all previously store events.
|
|
|
testing_data_generator | $datagenerator |
|
number | $instancecount = 0 |
| of created instances
|
|
◆ add_meeting_event()
mod_bigbluebuttonbn_generator::add_meeting_event |
( |
object |
$user, |
|
|
instance |
$instance, |
|
|
string |
$eventtype, |
|
|
string |
$eventdata = '' |
|
) |
| |
Trigger a meeting event on BBB side.
- Parameters
-
object | $user | |
instance | $instance | |
string | $eventtype | |
string | null | $eventdata | |
- Return values
-
◆ create_content()
testing_module_generator::create_content |
( |
|
$instance, |
|
|
|
$record = array() |
|
) |
| |
|
inherited |
◆ create_instance()
mod_bigbluebuttonbn_generator::create_instance |
( |
|
$record = null , |
|
|
array |
$options = null |
|
) |
| |
Creates an instance of bigbluebuttonbn for testing purposes.
- Parameters
-
array | stdClass | $record | data for module being generated. |
null | array | $options | general options for course module. |
- Return values
-
stdClass | record from module-defined table with additional field cmid |
Reimplemented from testing_module_generator.
◆ create_log()
mod_bigbluebuttonbn_generator::create_log |
( |
|
$record, |
|
|
array |
$options = null |
|
) |
| |
Create a log record.
- Parameters
-
mixed | $record | |
array | null | $options | |
◆ create_meeting()
mod_bigbluebuttonbn_generator::create_meeting |
( |
array |
$data | ) |
|
Mock an in-progress meeting on the remote server.
- Parameters
-
- Return values
-
◆ create_mockserver_recording()
mod_bigbluebuttonbn_generator::create_mockserver_recording |
( |
instance |
$instance, |
|
|
stdClass |
$recordingdata, |
|
|
array |
$data |
|
) |
| |
|
protected |
Add a recording in the mock server.
- Parameters
-
instance | $instance | |
stdClass | $recordingdata | |
array | $data | |
- Return values
-
◆ create_recording()
mod_bigbluebuttonbn_generator::create_recording |
( |
array |
$data, |
|
|
|
$serveronly = false |
|
) |
| |
Create a recording for the given bbb activity.
The recording is created both locally, and a recording record is created on the mocked BBB server.
- Parameters
-
array | $data | |
bool | $serveronly | create it only on the server, not in the database. |
- Return values
-
stdClass | the recording object |
◆ get_mocked_server_url()
mod_bigbluebuttonbn_generator::get_mocked_server_url |
( |
string |
$endpoint = '' , |
|
|
array |
$params = [] |
|
) |
| |
|
protected |
Get a URL for a mocked BBB server endpoint.
- Parameters
-
string | $endpoint | |
array | $params | |
- Return values
-
◆ get_modulename()
testing_module_generator::get_modulename |
( |
| ) |
|
|
inherited |
Returns module name.
- Return values
-
string | name of module that this class describes |
- Exceptions
-
◆ get_participant_configuration()
mod_bigbluebuttonbn_generator::get_participant_configuration |
( |
string |
$field, |
|
|
string |
$role |
|
) |
| |
|
protected |
Get the participant configuration for a field and role for use in get_participants_from_record.
- Parameters
-
- Return values
-
◆ get_participants_from_record()
mod_bigbluebuttonbn_generator::get_participants_from_record |
( |
array |
$record | ) |
|
|
protected |
Create the participants field data from create_instance data.
- Parameters
-
- Return values
-
◆ post_add_instance()
testing_module_generator::post_add_instance |
( |
|
$id, |
|
|
|
$cmid |
|
) |
| |
|
protectedinherited |
◆ precreate_course_module()
testing_module_generator::precreate_course_module |
( |
|
$courseid, |
|
|
array |
$options |
|
) |
| |
|
protectedinherited |
◆ prepare_moduleinfo_record()
testing_module_generator::prepare_moduleinfo_record |
( |
|
$record, |
|
|
|
$options |
|
) |
| |
|
protectedinherited |
Merges together arguments $record and $options and fills default module fields that are shared by all module types.
- Parameters
-
object | array | $record | fields (different from defaults) for this module |
null | array | $options | for backward-compatibility this may include fields from course_modules table. They are merged into $record |
- Exceptions
-
◆ reset()
testing_module_generator::reset |
( |
| ) |
|
|
inherited |
◆ send_all_events()
mod_bigbluebuttonbn_generator::send_all_events |
( |
instance |
$instance | ) |
|
Send all previously store events.
- Parameters
-
- Return values
-
◆ send_mock_request()
mod_bigbluebuttonbn_generator::send_mock_request |
( |
string |
$endpoint, |
|
|
array |
$params = [] , |
|
|
array |
$mockdata = [] |
|
) |
| |
|
protected |
Utility to send a request to the mock server.
- Parameters
-
string | $endpoint | |
array | $params | |
array | $mockdata | |
- Return values
-
- Exceptions
-
◆ set_user()
component_generator_base::set_user |
( |
?stdClass |
$user = null | ) |
|
|
protectedinherited |
Set the current user during data generation.
This should be avoided wherever possible, but in some situations underlying code will insert data as the current user.
- Parameters
-
The documentation for this class was generated from the following file:
- mod/bigbluebuttonbn/tests/generator/lib.php