Commit 2598778e authored by webchick's avatar webchick

#730220 follow-up by pwolanin: Fix fragile Contact module test caused by use...

#730220 follow-up by pwolanin: Fix fragile Contact module test caused by use of randomString() vs. randomName().
parent 3a60a9b8
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment