summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index c1630d6dd..8b17b3b87 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -27,7 +27,7 @@ class CommentTestCase extends DrupalWebTestCase {
$this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create article content'));
$this->drupalLogin($this->web_user);
- $this->node = $this->drupalCreateNode(array('type' => 'article'));
+ $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
$this->assertTrue($this->node, t('Article node created.'));
$this->drupalLogout();
}
@@ -68,6 +68,10 @@ class CommentTestCase extends DrupalWebTestCase {
$this->drupalGet('comment/edit/' . $reply->id);
$reply = $this->postComment(NULL, $this->randomName(), $this->randomName());
$this->assertTrue($this->commentExists($reply, TRUE), t('Modified reply found.'));
+
+ // Correct link count
+ $this->drupalGet('node');
+ $this->assertRaw('2 comments', t('Link to the 2 comments exist.'));
// Pager
$this->setCommentsPerPage(2);