diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-03-25 16:54:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-03-25 16:54:24 +0000 |
commit | f8083c48dbf9b88b0b82d84633ab0c07e494e15e (patch) | |
tree | a1b028d1ef199e759828ce545bf13db5136e7442 /modules | |
parent | 617ccc1da370b1cc8435c27103fdd4da9fd3a906 (diff) | |
download | brdo-f8083c48dbf9b88b0b82d84633ab0c07e494e15e.tar.gz brdo-f8083c48dbf9b88b0b82d84633ab0c07e494e15e.tar.bz2 |
- Patch #296482 by mr.baileys: additional tests for the comments block.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/comment.test | 14 |
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.')); } } |