summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 97905cddf..2e4b6c4da 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -585,6 +585,20 @@ class CommentBlockFunctionalTest extends CommentHelperCase {
$this->assertText($comment2->subject, t('Comment found in block.'));
$this->assertText($comment3->comment, t('Comment found in block.'));
$this->assertTrue(strpos($this->drupalGetContent(), $comment3->comment) < strpos($this->drupalGetContent(), $comment2->subject), t('Comments were ordered correctly in block.'));
+
+ // Set the number of recent comments to show to 10.
+ $this->drupalLogout();
+ $this->drupalLogin($this->admin_user);
+ $block = array(
+ 'comment_block_count' => 10,
+ );
+ $this->drupalPost('admin/build/block/configure/comment/recent', $block, t('Save block'));
+ $this->assertText(t('The block configuration has been saved.'), t('Block saved.'));
+
+ // Test that all three comments are shown.
+ $this->assertText($comment1->subject, t('Comment found in block.'));
+ $this->assertText($comment2->subject, t('Comment found in block.'));
+ $this->assertText($comment3->comment, t('Comment found in block.'));
}
}