diff options
Diffstat (limited to 'modules/contact/contact.test')
-rw-r--r-- | modules/contact/contact.test | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/contact/contact.test b/modules/contact/contact.test index 692b3c752..ae5fbe1ec 100644 --- a/modules/contact/contact.test +++ b/modules/contact/contact.test @@ -27,8 +27,6 @@ class ContactSitewideTestCase extends DrupalWebTestCase { // Set settings. $edit = array(); - $contact_form_information = $this->randomName(100); - $edit['contact_form_information'] = $contact_form_information; $edit['contact_hourly_threshold'] = 3; $edit['contact_default_status'] = TRUE; $this->drupalPost('admin/build/contact/settings', $edit, t('Save configuration')); @@ -82,7 +80,7 @@ class ContactSitewideTestCase extends DrupalWebTestCase { $this->setPermission('anonymous user', array('access site-wide contact form' => TRUE)); $this->drupalLogout(); $this->drupalGet('contact'); - $this->assertText($contact_form_information, t('Contact form is shown when there is one category.')); + $this->assertText(t('Contact'), t('Contact form is shown when there is one category.')); $this->assertNoText(t('Category'), t('When there is only one category, the category selection element is hidden.')); $this->drupalLogin($admin_user); @@ -113,9 +111,6 @@ class ContactSitewideTestCase extends DrupalWebTestCase { $this->drupalGet('contact'); $this->assertResponse(200, t('Access granted to anonymous user with permission.')); - // Check that "Additional information" is displayed on the page. - $this->assertText($edit['contact_form_information'], t('Contact information displayed.')); - // Submit contact form with invalid values. $this->submitContact('', $recipients[0], $this->randomName(16), $categories[0], $this->randomName(64)); $this->assertText(t('Your name field is required.'), t('Name required.')); |