You are here

function ContactSitewideTestCase::submitContact in Contact 6.2

Same name and namespace in other branches
  1. 7.2 contact.test \ContactSitewideTestCase::submitContact()

Submit contact form.

Parameters

string $name Name.:

string $mail E-mail address.:

string $subject Subject.:

integer $cid Category id.:

string $message Message.:

2 calls to ContactSitewideTestCase::submitContact()
ContactSitewideTestCase::testAutoReply in ./contact.test
Test auto-reply on the site-wide contact form.
ContactSitewideTestCase::testSiteWideContact in ./contact.test
Test configuration options and site-wide contact form.

File

./contact.test, line 240

Class

ContactSitewideTestCase
Test the sitewide 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
    ->drupalPost('contact', $edit, t('Send message'));
}