summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2008-06-05 17:57:04 (GMT)
committerDries Buytaert2008-06-05 17:57:04 (GMT)
commitdc613626d403da8cbab70ee0e5f1447fbe369d22 (patch)
treec52084aa84e13c886f423ec043d0a83c70254df0
parentd722c9690949fdf8fa5fdec96bab82f18c9dbe58 (diff)
- Patch #266465 by R.Muilwijk: fixed the comment module tests.
-rw-r--r--modules/comment/comment.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 82b2047..2f56997 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -27,8 +27,8 @@ class CommentTestCase extends DrupalWebTestCase {
$this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create story content'));
$this->drupalLogin($this->web_user);
- $this->node = $this->drupalCreateNode(array('type' => 'story'));
- $this->assertTrue($this->node, t('Story node created.'));
+ $this->node = $this->drupalCreateNode(array('type' => 'article'));
+ $this->assertTrue($this->node, t('Article node created.'));
$this->drupalLogout();
}
@@ -140,7 +140,7 @@ class CommentTestCase extends DrupalWebTestCase {
$this->assertFalse($this->commentExists($anonymous_comment3), t('Anonymous comment with contact info (required) not found.'));
// Post comment with contact info (required).
- $anonymous_comment3 = $this->postComment($this->node, $this->randomName(), $this->randomName(), FALSE, array('mail' => 'tester@simpletest.org'));
+ $anonymous_comment3 = $this->postComment($this->node, $this->randomName(), $this->randomName(), TRUE, array('mail' => 'tester@simpletest.org'));
$this->assertTrue($this->commentExists($anonymous_comment3), t('Anonymous comment with contact info (required) found.'));
// Unpublish comment.
@@ -353,7 +353,7 @@ class CommentTestCase extends DrupalWebTestCase {
}
/**
- * Set comment setting for story content type.
+ * Set comment setting for article content type.
*
* @param string $name
* Name of variable.
@@ -363,7 +363,7 @@ class CommentTestCase extends DrupalWebTestCase {
* Status message to display.
*/
function setCommentSettings($name, $value, $message) {
- variable_set($name . '_story', $value);
+ variable_set($name . '_article', $value);
$this->assertTrue(TRUE, t($message)); // Display status message.
}