From a4d3da9ec5133cbf4ce76b37020f45e5207cd421 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Tue, 21 Apr 2009 05:05:27 +0000
Subject: [PATCH] - Patch #413060 by pp: added a test for contact module.

---
 modules/contact/contact.test | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/contact/contact.test b/modules/contact/contact.test
index 73f370344eb9..ddc67036fb45 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);
-- 
GitLab