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.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]

Behat message-related steps definitions.

Copyright: 2013 David MonllaĆ³
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 337 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_message  - X-Ref

Messaging system steps definitions.

get_partial_named_selectors()   X-Ref
Return the list of partial named selectors.

return: array

get_named_replacements()   X-Ref
Return a list of the Mink named replacements for the component.

Named replacements allow you to define parts of an xpath that can be reused multiple times, or in multiple
xpaths.

This method should return a list of {@link behat_component_named_replacement} and the docs on that class explain
how it works.

return: behat_component_named_replacement[]

i_open_messaging()   X-Ref
Open the messaging UI.


i_open_the_conversations_list(string $tab)   X-Ref
Open the messaging conversation list.

param: string $tab

i_open_messaging_information()   X-Ref
Open the messaging UI.


i_view_contact_in_messages($userfullname)   X-Ref
View the contact information of a user in the messages ui.

param: string $userfullname

i_select_user_in_messaging($userfullname)   X-Ref
Select a user in the messaging UI.

param: string $userfullname

i_search_for_string_in_messaging($string)   X-Ref
Search for a string using the messaging search.

param: string $string the search string.

i_send_message_to_user($messagecontent, $userfullname)   X-Ref
Sends a message to the specified user from the logged user. The user full name should contain the first and last names.

param: string $messagecontent
param: string $userfullname

i_send_message_in_the_message_area($messagecontent)   X-Ref
Select messages from a user in the messaging ui.

param: string $messagecontent

i_go_back_in_message_drawer($parentelement)   X-Ref
Navigate back in the messages ui drawer.

param: string $parentelement

i_select_conversation_in_messaging($conversationname)   X-Ref
Select a user in the messaging UI.

param: string $conversationname

i_open_contact_menu()   X-Ref
Open the contact menu.


i_select_conversation_in_the_conversations_list(string $convname, string $listname)   X-Ref
Select a user in a specific messaging UI conversations list.

param: string $convname
param: string $listname

i_open_messaging_settings_preferences()   X-Ref
Open the settings preferences.