summaryrefslogtreecommitdiff
path: root/modules/forum/forum.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-08 07:58:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-08 07:58:47 +0000
commitc4e1242e92f3bcedc15a663821e080dcea4be4b8 (patch)
tree59215bf056869efb33af429e78aed6660dc80efe /modules/forum/forum.test
parentf5b02199c737d7a2de051d479de703a2176b1cbe (diff)
downloadbrdo-c4e1242e92f3bcedc15a663821e080dcea4be4b8.tar.gz
brdo-c4e1242e92f3bcedc15a663821e080dcea4be4b8.tar.bz2
#412518 by catch, bangpound, and yched: Convert taxonomy_node_* to field API (with upgrade path). Say buh-bye to old, crusty code.
Diffstat (limited to 'modules/forum/forum.test')
-rw-r--r--modules/forum/forum.test7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/forum/forum.test b/modules/forum/forum.test
index 30ddf36ff..4496949b9 100644
--- a/modules/forum/forum.test
+++ b/modules/forum/forum.test
@@ -131,8 +131,7 @@ class ForumTestCase extends DrupalWebTestCase {
$edit = array(
'name' => $title,
'description' => $description,
- 'machine_name' => drupal_strtolower($this->randomName()),
- 'help' => '',
+ 'machine_name' => drupal_strtolower(drupal_substr($this->randomName(), 3, 9)),
);
// Edit the vocabulary.
@@ -251,7 +250,7 @@ class ForumTestCase extends DrupalWebTestCase {
$edit = array(
'title' => $title,
"body[$langcode][0][value]" => $body,
- 'taxonomy[1]' => $tid
+ "taxonomy_forums[$langcode][value]" => $tid,
);
// TODO The taxonomy select value is set by drupal code when the tid is part
@@ -341,7 +340,7 @@ class ForumTestCase extends DrupalWebTestCase {
$langcode = FIELD_LANGUAGE_NONE;
$edit["body[$langcode][0][value]"] = $this->randomName(256);
// Assume the topic is initially associated with $forum.
- $edit['taxonomy[1]'] = $this->root_forum['tid'];
+ $edit["taxonomy_forums[$langcode][value]"] = $this->root_forum['tid'];
$edit['shadow'] = TRUE;
$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
$this->assertRaw(t('Forum topic %title has been updated.', array('%title' => $edit['title'])), t('Forum node was edited'));