Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Messaging system steps definitions. More...
Public Member Functions | |
getSession ($name=null) | |
Returns the Mink session. | |
i_go_back_in_message_drawer ($parentelement) | |
Navigate back in the messages ui drawer. | |
i_open_contact_menu () | |
Open the contact menu. | |
i_open_messaging () | |
Open the messaging UI. | |
i_open_messaging_information () | |
Open the messaging UI. | |
i_open_messaging_settings_preferences () | |
Open the settings preferences. | |
i_open_the_conversations_list (string $tab) | |
Open the messaging conversation list. | |
i_search_for_string_in_messaging ($string) | |
Search for a string using the messaging search. | |
i_select_conversation_in_messaging ($conversationname) | |
Select a user in the messaging UI. | |
i_select_conversation_in_the_conversations_list (string $convname, string $listname) | |
Select a user in a specific messaging UI conversations list. | |
i_select_user_in_messaging ($userfullname) | |
Select a user in the messaging UI. | |
i_send_message_in_the_message_area ($messagecontent) | |
Select messages from a user in the messaging ui. | |
i_send_message_to_user ($messagecontent, $userfullname) | |
Sends a message to the specified user from the logged user. | |
i_view_contact_in_messages ($userfullname) | |
View the contact information of a user in the messages ui. | |
Static Public Member Functions | |
static | get_named_replacements () |
Return a list of the Mink named replacements for the component. | |
static | get_partial_named_selectors () |
Return the list of partial named selectors. | |
Public Attributes | |
const | PAGE_READY_JS |
The JS code to check that the page is ready. | |
Messaging system steps definitions.
|
static |
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 behat_component_named_replacement and the docs on that class explain how it works.
behat_component_named_replacement[] |
|
static |
Return the list of partial named selectors.
array |
|
inherited |
Returns the Mink session.
string | null | $name | name of the session OR active session will be used |
Behat\Mink\Session |
Implemented in behat_form_field.
behat_message::i_go_back_in_message_drawer | ( | $parentelement | ) |
Navigate back in the messages ui drawer.
@Given /^I go back in "(?P<parent_element_string>(?:[^"]|::")*)" message drawer$/
string | $parentelement |
behat_message::i_open_contact_menu | ( | ) |
Open the contact menu.
@Given /^I open contact menu$/
behat_message::i_open_messaging | ( | ) |
Open the messaging UI.
@Given /^I open messaging$/
behat_message::i_open_messaging_information | ( | ) |
Open the messaging UI.
@Given /^I open messaging information$/
behat_message::i_open_messaging_settings_preferences | ( | ) |
Open the settings preferences.
@Given /^I open messaging settings preferences$/
behat_message::i_open_the_conversations_list | ( | string | $tab | ) |
Open the messaging conversation list.
@Given /^I open the "(?P<tab_string>(?:[^"]|::")*)" conversations list/
string | $tab |
behat_message::i_search_for_string_in_messaging | ( | $string | ) |
Search for a string using the messaging search.
@Given /^I search for "(?P<string>(?:[^"]|::")*)" in messaging$/
string | $string | the search string. |
behat_message::i_select_conversation_in_messaging | ( | $conversationname | ) |
Select a user in the messaging UI.
@Given /^I select "(?P<conversation_name_string>(?:[^"]|::")*)" conversation in messaging$/
string | $conversationname |
behat_message::i_select_conversation_in_the_conversations_list | ( | string | $convname, |
string | $listname ) |
Select a user in a specific messaging UI conversations list.
@Given /^I select "(?P<conv_name_string>(?:[^"]|::")*)" conversation in the "(?P<list_name_string>(?:[^"]|")*)" conversations list$/
string | $convname | |
string | $listname |
behat_message::i_select_user_in_messaging | ( | $userfullname | ) |
Select a user in the messaging UI.
@Given /^I select "(?P<user_full_name_string>(?:[^"]|::")*)" user in messaging$/
string | $userfullname |
behat_message::i_send_message_in_the_message_area | ( | $messagecontent | ) |
Select messages from a user in the messaging ui.
@Given /^I send "(?P<message_contents_string>(?:[^"]|::")*)" message in the message area$/
string | $messagecontent |
behat_message::i_send_message_to_user | ( | $messagecontent, | |
$userfullname ) |
Sends a message to the specified user from the logged user.
The user full name should contain the first and last names.
@Given /^I send "(?P<message_contents_string>(?:[^"]|::")*)" message to "(?P<user_full_name_string>(?:[^"]|")*)" user$/
string | $messagecontent | |
string | $userfullname |
behat_message::i_view_contact_in_messages | ( | $userfullname | ) |
View the contact information of a user in the messages ui.
@Given /^I view the "(?P<user_full_name_string>(?:[^"]|::")*)" contact in the message area$/
string | $userfullname |
|
inherited |
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.