summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-22 17:52:58 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-03-22 17:52:58 +0000
commit2598778efa1887a4f2a8eb016114d32e8b6259a8 (patch)
tree10819adfd2dfcae7b663b13331f94ed4f3721e77 /modules/contact
parent3a60a9b8cf43b1058070a1b535c0cb729a87fd03 (diff)
downloadbrdo-2598778efa1887a4f2a8eb016114d32e8b6259a8.tar.gz
brdo-2598778efa1887a4f2a8eb016114d32e8b6259a8.tar.bz2
#730220 follow-up by pwolanin: Fix fragile Contact module test caused by use of randomString() vs. randomName().
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/contact/contact.test b/modules/contact/contact.test
index cc89d8632..80a157b87 100644
--- a/modules/contact/contact.test
+++ b/modules/contact/contact.test
@@ -166,15 +166,15 @@ class ContactSitewideTestCase extends DrupalWebTestCase {
$this->drupalLogin($admin_user);
// Set up three categories, 2 with an auto-reply and one without.
- $foo_autoreply = $this->randomString(40);
- $bar_autoreply = $this->randomString(40);
+ $foo_autoreply = $this->randomName(40);
+ $bar_autoreply = $this->randomName(40);
$this->addCategory('foo', 'foo@example.com', $foo_autoreply, FALSE);
$this->addCategory('bar', 'bar@example.com', $bar_autoreply, FALSE);
$this->addCategory('no_autoreply', 'bar@example.com', '', FALSE);
// Test the auto-reply for category 'foo'.
$email = $this->randomName(32) . '@example.com';
- $subject = $this->randomString(64);
+ $subject = $this->randomName(64);
$this->submitContact($this->randomName(16), $email, $subject, 2, $this->randomString(128));
// We are testing the auto-reply, so there should be one e-mail going to the sender.