Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

Defines 1 class

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.