summaryrefslogtreecommitdiff
path: root/modules/forum/forum.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-01-13 22:41:39 +0000
committerDries Buytaert <dries@buytaert.net>2009-01-13 22:41:39 +0000
commit77936aef4c487e8b3265cb28e72d104004cb1172 (patch)
treed2dbc969ff08f968f248ccedb39dc846950e3480 /modules/forum/forum.test
parentbe36b9205e25595f5e4bf0dba4de33f5f620b33e (diff)
downloadbrdo-77936aef4c487e8b3265cb28e72d104004cb1172.tar.gz
brdo-77936aef4c487e8b3265cb28e72d104004cb1172.tar.bz2
- Rollback of #225562 -- I think there is still something wrong.
Diffstat (limited to 'modules/forum/forum.test')
-rw-r--r--modules/forum/forum.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/forum/forum.test b/modules/forum/forum.test
index b8e9136c0..01ec526d1 100644
--- a/modules/forum/forum.test
+++ b/modules/forum/forum.test
@@ -149,7 +149,7 @@ class ForumTestCase extends DrupalWebTestCase {
*
* @param string $type Forum type (forum container or forum).
* @param integer $parent Forum parent (default = 0 = a root forum; >0 = a forum container or another forum).
- * @return object Taxonomy_term_data created.
+ * @return object Term_data created.
*/
function createForum($type, $parent = 0) {
// Generate a random name/description.
@@ -170,12 +170,12 @@ class ForumTestCase extends DrupalWebTestCase {
$this->assertRaw(t('Created new @type %term.', array('%term' => $name, '@type' => t($type))), t(ucfirst($type) . ' was created'));
// Verify forum.
- $term = db_fetch_array(db_query("SELECT * FROM {taxonomy_term_data} t WHERE t.vid = %d AND t.name = '%s' AND t.description = '%s'", variable_get('forum_nav_vocabulary', ''), $name, $description));
+ $term = db_fetch_array(db_query("SELECT * FROM {term_data} t WHERE t.vid = %d AND t.name = '%s' AND t.description = '%s'", variable_get('forum_nav_vocabulary', ''), $name, $description));
$this->assertTrue(!empty($term), 'The ' . $type . ' exists in the database');
// Verify forum hierarchy.
$tid = $term['tid'];
- $parent_tid = db_result(db_query("SELECT t.parent FROM {taxonomy_term_hierarchy} t WHERE t.tid = %d", $tid));
+ $parent_tid = db_result(db_query("SELECT t.parent FROM {term_hierarchy} t WHERE t.tid = %d", $tid));
$this->assertTrue($parent == $parent_tid, 'The ' . $type . ' is linked to its container');
return $term;
@@ -322,7 +322,7 @@ class ForumTestCase extends DrupalWebTestCase {
/**
* Verify display of forum page.
*
- * @param array $forum Forum array (a row from taxonomy_term_data table).
+ * @param array $forum Forum array (a row from term_data table).
*/
private function verifyForumView($forum, $parent = NULL) {
$crumb = '›';
@@ -342,7 +342,7 @@ class ForumTestCase extends DrupalWebTestCase {
/**
* Generate forum topics to test display of active forum block.
*
- * @param array $forum Forum array (a row from taxonomy_term_data table).
+ * @param array $forum Forum array (a row from term_data table).
*/
private function generateForumTopics($forum) {
$this->nids = array();