Behat custom steps and configuration for mod_bigbluebuttonbn.
More...
◆ before_scenario()
behat_mod_bigbluebuttonbn::before_scenario |
( |
BeforeScenarioScope |
$scope | ) |
|
BeforeScenario hook to reset the remote testpoint.
@BeforeScenario @mod_bigbluebuttonbn
- Parameters
-
BeforeScenarioScope | $scope | |
◆ get_course_id()
behat_mod_bigbluebuttonbn::get_course_id |
( |
string |
$identifier | ) |
|
|
protected |
Get course id from its identifier (shortname or fullname or idnumber)
- Parameters
-
- Return values
-
◆ get_exact_named_selectors()
static behat_mod_bigbluebuttonbn::get_exact_named_selectors |
( |
| ) |
|
|
static |
Return the list of exact named selectors.
- Return values
-
◆ get_mocked_server_url()
static behat_mod_bigbluebuttonbn::get_mocked_server_url |
( |
string |
$endpoint = '' , |
|
|
array |
$params = [] |
|
) |
| |
|
static |
Retrieve the mock server URL from the TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER definition.
- Parameters
-
string | $endpoint | |
array | $params | |
- Return values
-
◆ getSession()
behat_session_interface::getSession |
( |
|
$name = null | ) |
|
|
inherited |
Returns the Mink session.
- Parameters
-
string | null | $name | name of the session OR active session will be used |
- Return values
-
Implemented in behat_form_field.
◆ mock_is_configured()
behat_mod_bigbluebuttonbn::mock_is_configured |
( |
| ) |
|
Check that the TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER is defined, so we can connect to the mock server.
@Given /^a BigBlueButton mock server is configured$/
◆ resolve_page_instance_url()
behat_mod_bigbluebuttonbn::resolve_page_instance_url |
( |
string |
$type, |
|
|
string |
$identifier |
|
) |
| |
|
protected |
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) |
- Parameters
-
string | $type | identifies which type of page this is, e.g. 'Indez'. |
string | $identifier | identifies the particular page, e.g. 'Mathematics 101'. |
- Return values
-
- Exceptions
-
Exception | with a meaningful error message if the specified page cannot be found. |
◆ resolve_page_url()
behat_mod_bigbluebuttonbn::resolve_page_url |
( |
string |
$page | ) |
|
|
protected |
Convert page names to URLs for steps like 'When I am on the "[page name]" page'.
Recognised page names are: | None so far! | |
- Parameters
-
string | $page | name of the page, with the component name removed e.g. 'Admin notification'. |
- Return values
-
- Exceptions
-
Exception | with a meaningful error message if the specified page cannot be found. |
◆ send_mock_request()
behat_mod_bigbluebuttonbn::send_mock_request |
( |
string |
$endpoint, |
|
|
array |
$params = [] |
|
) |
| |
|
protected |
Send a query to the mock server.
- Parameters
-
string | $endpoint | |
array | $params | |
◆ trigger_recording_ready_notification()
behat_mod_bigbluebuttonbn::trigger_recording_ready_notification |
( |
| ) |
|
Trigger a recording ready notification on BBB side.
@Given the BigBlueButtonBN server has sent recording ready notifications
◆ PAGE_READY_JS
const behat_session_interface::PAGE_READY_JS |
|
inherited |
Initial value:= "document.readyState === 'complete' && " .
"(typeof M !== 'object' || typeof M.util !== 'object' || " .
"typeof M.util.pending_js === 'undefined' || M.util.pending_js.length === 0)"
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.
The documentation for this class was generated from the following file:
- mod/bigbluebuttonbn/tests/behat/behat_mod_bigbluebuttonbn.php