summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.test9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/user/user.test b/modules/user/user.test
index 494d3e1fb..65408397d 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -537,10 +537,11 @@ class UserCancelTestCase extends DrupalWebTestCase {
$node = $this->drupalCreateNode(array('uid' => $account->uid));
// Create comment.
- $edit = array(
- 'subject' => $this->randomString(),
- 'comment' => $this->randomString(),
- );
+ $langcode = LANGUAGE_NONE;
+ $edit = array();
+ $edit['subject'] = $this->randomName(8);
+ $edit['comment_body[' . $langcode . '][0][value]'] = $this->randomName(16);
+
$this->drupalPost('comment/reply/' . $node->nid, $edit, t('Preview'));
$this->drupalPost(NULL, array(), t('Save'));
$this->assertText(t('Your comment has been posted.'));