protected function ContactEmailsTestBase::createBaseContactForm in Contact Emails 8
Creates a base contact form for use in all tests.
Throws
\Exception
1 call to ContactEmailsTestBase::createBaseContactForm()
File
- src/
ContactEmailsTestBase.php, line 52
Class
- ContactEmailsTestBase
- Base class for contact emails tests.
Namespace
Drupal\contact_emailsCode
protected function createBaseContactForm() {
// Create a contact form.
$params = [
'label' => 'Contact Emails Test Form',
'id' => 'contact_emails_test_form',
'message' => 'Your message has been sent.',
'recipients' => 'test@example.com',
'contact_storage_submit_text' => 'Send message',
];
$this
->drupalPostForm('admin/structure/contact/add', $params, t('Save'));
}