summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-18 16:06:42 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-18 16:06:42 +0000
commit61cc35f2b0820733ff40a9775da45fa93a078584 (patch)
treee957ab408ab630f278992c6d5113af49e4b9d7ef /modules/comment/comment.test
parent6e2358b23208ef7e2119d95b0cea1537d9a863c8 (diff)
downloadbrdo-61cc35f2b0820733ff40a9775da45fa93a078584.tar.gz
brdo-61cc35f2b0820733ff40a9775da45fa93a078584.tar.bz2
- Patch #255918 by R.Muilwijk: performance improvement: comment_link querying for already retrieved data.
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);