From 2cd63188aa16dfc4b660a7cf847bf37c97058b36 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 2 Sep 2019 09:05:29 +0800 Subject: [PATCH] MDL-65493 message: The execute wrapper MUST be used --- message/tests/behat/behat_message.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/message/tests/behat/behat_message.php b/message/tests/behat/behat_message.php index 973739bd161..cd8bc43f1c1 100644 --- a/message/tests/behat/behat_message.php +++ b/message/tests/behat/behat_message.php @@ -78,7 +78,7 @@ class behat_message extends behat_base { */ public function i_view_contact_in_messages($userfullname) { // Visit home page and follow messages. - $this->i_select_user_in_messaging($userfullname); + $this->execute('behat_message::i_select_user_in_messaging', [$userfullname]); $this->execute('behat_general::i_click_on_in_the', array( @@ -107,9 +107,9 @@ class behat_message extends behat_base { * @param string $userfullname */ public function i_select_user_in_messaging($userfullname) { - $this->i_open_messaging(); + $this->execute('behat_message::i_open_messaging', []); - $this->i_search_for_string_in_messaging($userfullname); + $this->execute('behat_message::i_search_for_string_in_messaging', [$userfullname]); // Need to limit the click to the search results because the 'view-contact-profile' elements // can occur in two separate divs on the page. @@ -154,7 +154,7 @@ class behat_message extends behat_base { * @param string $userfullname */ public function i_send_message_to_user($messagecontent, $userfullname) { - $this->i_select_user_in_messaging($userfullname); + $this->execute('behat_message::i_select_user_in_messaging', [$userfullname]); $this->execute('behat_forms::i_set_the_field_with_xpath_to', array("//textarea[@data-region='send-message-txt']", $this->escape($messagecontent))