1 contact.test ContactSitewideTestCase::submitContact($name, $mail, $subject, $cid, $message)

Submits the contact form.

Parameters

string $name: The name of the sender.

string $mail: The email address of the sender.

string $subject: The subject of the message.

integer $cid: The category ID of the message.

string $message: The message body.

File

core/modules/contact/tests/contact.test, line 283
Tests for the Contact module.

Class

ContactSitewideTestCase
Tests the site-wide contact form.

Code

function submitContact($name, $mail, $subject, $cid, $message) {
  $edit = array();
  $edit['name'] = $name;
  $edit['mail'] = $mail;
  $edit['subject'] = $subject;
  $edit['cid'] = $cid;
  $edit['message'] = $message;
  $this->backdropPost('contact', $edit, t('Send message'));
}