Skip to content

Commit

Permalink
MDL-65493 message: The execute wrapper MUST be used
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Sep 6, 2019
1 parent 191c5c2 commit b82faf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions message/tests/behat/behat_message.php
Expand Up @@ -78,7 +78,7 @@ public function i_open_messaging_information() {
*/
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(
Expand Down Expand Up @@ -107,9 +107,9 @@ public function i_view_contact_in_messages($userfullname) {
* @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.
Expand Down Expand Up @@ -154,7 +154,7 @@ public function i_search_for_string_in_messaging($string) {
* @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))
Expand Down

0 comments on commit b82faf7

Please sign in to comment.