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.

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.