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] [Versions 401 and 403]

Behat custom steps and configuration for mod_bigbluebuttonbn.

Copyright: 2021 Andrew Lyons <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 244 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_mod_bigbluebuttonbn  - X-Ref

Behat custom steps and configuration for mod_bigbluebuttonbn.

before_scenario(BeforeScenarioScope $scope)   X-Ref
BeforeScenario hook to reset the remote testpoint.

param: BeforeScenarioScope $scope

i_accept_dpa_and_enable_bigbluebuttonbn_plugin()   X-Ref
Accept dpa and enable bigbluebuttonbn plugin.


mock_is_configured()   X-Ref
Check that the TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER is defined, so we can connect to the mock server.


get_exact_named_selectors()   X-Ref
Return the list of exact named selectors.

return: array

get_mocked_server_url(string $endpoint = '', array $params = [])   X-Ref
Retrieve the mock server URL from the TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER definition

param: string $endpoint
param: array $params
return: moodle_url

send_mock_request(string $endpoint, array $params = [])   X-Ref
Send a query to the mock server

param: string $endpoint
param: array $params

resolve_page_url(string $page)   X-Ref
Convert page names to URLs for steps like 'When I am on the "[page name]" page'.

Recognised page names are:
| None so far!      |                                                              |

param: string $page name of the page, with the component name removed e.g. 'Admin notification'.
return: moodle_url the corresponding URL.

resolve_page_instance_url(string $type, string $identifier)   X-Ref
Convert page names to URLs for steps like 'When I am on the "[identifier]" "[page type]" page'.

Recognised page names are:
| pagetype | name meaning     | description                    |
| Index    | BBB Course Index | The bbb index page (index.php) |

param: string $type identifies which type of page this is, e.g. 'Indez'.
param: string $identifier identifies the particular page, e.g. 'Mathematics 101'.
return: moodle_url the corresponding URL.

get_course_id(string $identifier)   X-Ref
Get course id from its identifier (shortname or fullname or idnumber)

param: string $identifier
return: int

trigger_recording_ready_notification()   X-Ref
Trigger a recording ready notification on BBB side


trigger_meeting_event(string $username, TableNode $data)   X-Ref
Trigger a meeting event on BBB side

param: string $username
param: TableNode $data

trigger_all_events(string $instancename)   X-Ref
Send all events received for this meeting back to moodle

param: string $instancename