Steps definitions related to mod_chat.
Copyright: | 2021 Dongsheng Cai |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 76 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file lib/behat/behat_base.php |
behat_mod_chat:: (3 methods):
resolve_page_instance_url()
get_chat_by_name()
get_cm_by_chat_name()
Class: behat_mod_chat - X-Ref
Steps definitions related to mod_chat.resolve_page_instance_url(string $type, string $name) 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 | | View | Chat name | The chat info page (view.php) | param: string $type identifies which type of page this is, e.g. 'View'. param: string $name chat instance name return: moodle_url the corresponding URL. |
get_chat_by_name(string $name) X-Ref |
Get a chat by name. param: string $name chat name. return: stdClass the corresponding DB row. |
get_cm_by_chat_name(string $name) X-Ref |
Get a chat coursemodule object from the name. param: string $name chat name. return: stdClass cm from get_coursemodule_from_instance. |