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/system/system.test | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.test b/modules/system/system.test index 491fbc8fe..2c642adff 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -495,7 +495,7 @@ class AccessDeniedTestCase extends DrupalWebTestCase { $edit = array( 'title' => $this->randomName(10), - 'body' => array(array('value' => $this->randomName(100))), + 'body' => array(FIELD_LANGUAGE_NONE => array(array('value' => $this->randomName(100)))), ); $node = $this->drupalCreateNode($edit); @@ -572,7 +572,7 @@ class PageNotFoundTestCase extends DrupalWebTestCase { $edit = array( 'title' => $this->randomName(10), - 'body' => array(array('value' => $this->randomName(100))), + 'body' => array(FIELD_LANGUAGE_NONE => array(array('value' => $this->randomName(100)))), ); $node = $this->drupalCreateNode($edit); @@ -696,9 +696,10 @@ class PageTitleFiltering extends DrupalWebTestCase { drupal_set_title($title, PASS_THROUGH); $this->assertTrue(strpos(drupal_get_title(), '') !== FALSE, t('Tags in title are not converted to entities when $output is PASS_THROUGH.')); // Generate node content. + $langcode = FIELD_LANGUAGE_NONE; $edit = array( 'title' => '!SimpleTest! ' . $title . $this->randomName(20), - 'body[0][value]' => '!SimpleTest! test body' . $this->randomName(200), + "body[$langcode][0][value]" => '!SimpleTest! test body' . $this->randomName(200), ); // Create the node with HTML in the title. $this->drupalPost('node/add/page', $edit, t('Save')); -- cgit v1.2.3