From 34a8a369aa0afb353d95578768903c6a1d5cd06b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 22 Aug 2009 00:58:55 +0000 Subject: #367595 by plach, catch, sun, yched, et al: Added support for translatable fields to Field API. --- modules/forum/forum.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/forum') 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')); -- cgit v1.2.3