From f562e86581faa0cc3da859cebb185b2c52b179da Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 7 Jan 2010 05:23:52 +0000 Subject: #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. --- modules/user/user.test | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/user/user.test') 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.')); -- cgit v1.2.3