◆ get_creatable_entities()
behat_mod_lti_generator::get_creatable_entities |
( |
| ) |
|
|
protected |
Get list of entities for mod_lti behat tests.
- Return values
-
array[] | List of entity definitions. |
◆ get_lti_coursecategories_id()
behat_mod_lti_generator::get_lti_coursecategories_id |
( |
string | $idnumbers | ) |
|
|
protected |
Handles the switchid ['lti_coursecategories' => 'lti_coursecategories'] for restricting a tool to certain categories.
- Parameters
-
string | $idnumbers | a comma-separated string containing the course category id numbers, e.g. 'cata, catb, catc'. |
- Return values
-
string | a comma-separated string containing the course category ids. |
- Exceptions
-
coding_exception | if one or more of the categories is unable to be matched by its idnumber. |
◆ get_tool_id()
behat_mod_lti_generator::get_tool_id |
( |
string | $name | ) |
|
|
protected |
Handles the switchid ['tool' => 'typeid'] for finding a tool by name.
- Parameters
-
string | $name | the name of the tool. |
- Return values
-
int | the id of the tool type identified by the name $name. |
The documentation for this class was generated from the following file:
- mod/lti/tests/generator/behat_mod_lti_generator.php