summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-21 05:05:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-21 05:05:27 +0000
commita4d3da9ec5133cbf4ce76b37020f45e5207cd421 (patch)
tree4c12df34d1dc3a50cd27b2a99fc1cb1b9f44fbeb /modules/contact
parente81096f5bc509b650aba39ce1868efa066aa8152 (diff)
downloadbrdo-a4d3da9ec5133cbf4ce76b37020f45e5207cd421.tar.gz
brdo-a4d3da9ec5133cbf4ce76b37020f45e5207cd421.tar.bz2
- Patch #413060 by pp: added a test for contact module.
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/contact/contact.test b/modules/contact/contact.test
index 73f370344..ddc67036f 100644
--- a/modules/contact/contact.test
+++ b/modules/contact/contact.test
@@ -62,6 +62,9 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
$this->addCategory($category = $this->randomName(16), implode(',', array($recipients[0])), '', TRUE);
$this->assertRaw(t('Category %category has been added.', array('%category' => $category)), t('Category successfully added.'));
+ // Make sure the newly created category is included in the list of categories.
+ $this->assertNoUniqueText($category, t('New category included in categories list.'));
+
// Test update contact form category.
$categories = $this->getCategories();
$category_id = $this->updateCategory($categories, $category = $this->randomName(16), $recipients_str = implode(',', array($recipients[0], $recipients[1])), $reply = $this->randomName(30), FALSE);