summaryrefslogtreecommitdiff
path: root/modules/user/user.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-07 05:23:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-07 05:23:52 +0000
commitf562e86581faa0cc3da859cebb185b2c52b179da (patch)
treea5c248f5d96246edf89d2077a0ed0d704526a853 /modules/user/user.test
parent3ede61995539d7f4b1ee0b7f30897b849400f490 (diff)
downloadbrdo-f562e86581faa0cc3da859cebb185b2c52b179da.tar.gz
brdo-f562e86581faa0cc3da859cebb185b2c52b179da.tar.bz2
#538164 by scor, catch, linclark, effulgentsia, and yched: Convert Comment body as field. Yes, this is WAY past API freeze. :( But is a required follow-up for RDFa support.
Diffstat (limited to 'modules/user/user.test')
-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.'));