diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-22 00:58:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-22 00:58:55 +0000 |
commit | 34a8a369aa0afb353d95578768903c6a1d5cd06b (patch) | |
tree | cd695ff9c71a5c221f9a5ea4603b04fbc5c2b3bd /modules/forum | |
parent | bc23bfaa11d6a8d40bb12812cfa081b9c5d9b672 (diff) | |
download | brdo-34a8a369aa0afb353d95578768903c6a1d5cd06b.tar.gz brdo-34a8a369aa0afb353d95578768903c6a1d5cd06b.tar.bz2 |
#367595 by plach, catch, sun, yched, et al: Added support for translatable fields to Field API.
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/forum/forum.test b/modules/forum/forum.test index f3137edac..937d8e2db 100644 --- a/modules/forum/forum.test +++ b/modules/forum/forum.test @@ -232,9 +232,10 @@ class ForumTestCase extends DrupalWebTestCase { $body = $this->randomName(200); $tid = $forum['tid']; // Without this being set, post variable equals the first non-blank in select items list. + $langcode = FIELD_LANGUAGE_NONE; $edit = array( 'title' => $title, - 'body[0][value]' => $body, + "body[$langcode][0][value]" => $body, 'taxonomy[1]' => $tid ); @@ -321,7 +322,8 @@ class ForumTestCase extends DrupalWebTestCase { // Edit forum node (including moving it to another forum). $edit = array(); $edit['title'] = 'node/' . $node->nid; - $edit['body[0][value]'] = $this->randomName(256); + $langcode = FIELD_LANGUAGE_NONE; + $edit["body[$langcode][0][value]"] = $this->randomName(256); $edit['taxonomy[1]'] = $this->root_forum['tid']; // Assumes the topic is initially associated with $forum. $edit['shadow'] = TRUE; $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); |