summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-16 02:04:44 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-16 02:04:44 +0000
commit6061fa9781205b4de2a5cc69a565036e5fb2bf97 (patch)
treefddd45aac58609796d174121e922a7acdaa9106c /modules/path
parent5faaa376aa8c0bb5b1a17bca8f506f8431f795b0 (diff)
downloadbrdo-6061fa9781205b4de2a5cc69a565036e5fb2bf97.tar.gz
brdo-6061fa9781205b4de2a5cc69a565036e5fb2bf97.tar.bz2
#565480 by plach and peximo: TF #2: Multilingual field handling. Integration between field API and locale module + translatable node bodies.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/path/path.test b/modules/path/path.test
index 84ce3b0c9..4410b4680 100644
--- a/modules/path/path.test
+++ b/modules/path/path.test
@@ -181,7 +181,6 @@ class PathLanguageTestCase extends DrupalWebTestCase {
$edit['langcode'] = 'fr';
$this->drupalPost('admin/config/regional/language/add', $edit, t('Add language'));
- drupal_static_reset('language_list');
// Set language negotiation to "Path prefix with fallback".
include_once DRUPAL_ROOT . '/includes/locale.inc';
@@ -215,9 +214,10 @@ class PathLanguageTestCase extends DrupalWebTestCase {
$this->drupalGet('node/' . $english_node->nid . '/translate');
$this->clickLink(t('add translation'));
$edit = array();
+ $langcode = 'fr';
+ $edit["body[$langcode][0][value]"] = $this->randomName();
$langcode = FIELD_LANGUAGE_NONE;
$edit["title[$langcode][0][value]"] = $this->randomName();
- $edit["body[$langcode][0][value]"] = $this->randomName();
$edit['path'] = $this->randomName();
$this->drupalPost(NULL, $edit, t('Save'));
@@ -234,9 +234,9 @@ class PathLanguageTestCase extends DrupalWebTestCase {
$this->assertText($french_node->title[FIELD_LANGUAGE_NONE][0]['value'], 'Alias for French translation works.');
// Confirm that the alias is returned by url().
+ drupal_static_reset('language_list');
$languages = language_list();
$url = url('node/' . $french_node->nid, array('language' => $languages[$french_node->language]));
$this->assertTrue(strpos($url, $edit['path']), t('URL contains the path alias.'));
}
}
-