diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-02-13 19:34:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-02-13 19:34:54 +0000 |
commit | 67236edaefdb1b88618baa9d00f04b1ab042d19e (patch) | |
tree | a010f6f1ab41734ba6f07f6293f31a4bebc8d7a7 /modules/comment | |
parent | 1f7a18d37cf78f5fef7fbc2b79a30764d355aebb (diff) | |
download | brdo-67236edaefdb1b88618baa9d00f04b1ab042d19e.tar.gz brdo-67236edaefdb1b88618baa9d00f04b1ab042d19e.tar.bz2 |
- Patch #628764 by mr.baileys: comment.test does not implement setCommentPreview() correctly.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test index 6237ea5b3..bf6c68ea8 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -412,7 +412,7 @@ class CommentPreviewTest extends CommentHelperCase { // As admin user, configure comment settings. $this->drupalLogin($this->admin_user); - $this->setCommentPreview(TRUE); + $this->setCommentPreview(DRUPAL_OPTIONAL); $this->setCommentForm(TRUE); $this->setCommentSubject(TRUE); $this->setCommentSettings('comment_default_mode', COMMENT_MODE_THREADED, t('Comment paging changed.')); @@ -442,7 +442,7 @@ class CommentPreviewTest extends CommentHelperCase { $langcode = LANGUAGE_NONE; $web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'post comments without approval')); $this->drupalLogin($this->admin_user); - $this->setCommentPreview(TRUE); + $this->setCommentPreview(DRUPAL_OPTIONAL); $this->setCommentForm(TRUE); $this->setCommentSubject(TRUE); $this->setCommentSettings('comment_default_mode', COMMENT_MODE_THREADED, t('Comment paging changed.')); @@ -607,7 +607,7 @@ class CommentPagerTest extends CommentHelperCase { // Set comment variables. $this->setCommentForm(TRUE); $this->setCommentSubject(TRUE); - $this->setCommentPreview(FALSE); + $this->setCommentPreview(DRUPAL_DISABLED); // Create a node and three comments. $node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1)); @@ -680,7 +680,7 @@ class CommentPagerTest extends CommentHelperCase { // Set comment variables. $this->setCommentForm(TRUE); $this->setCommentSubject(TRUE); - $this->setCommentPreview(FALSE); + $this->setCommentPreview(DRUPAL_DISABLED); // Display all the comments on the same page. $this->setCommentsPerPage(1000); @@ -780,7 +780,7 @@ class CommentPagerTest extends CommentHelperCase { // Set comment variables. $this->setCommentForm(TRUE); $this->setCommentSubject(TRUE); - $this->setCommentPreview(FALSE); + $this->setCommentPreview(DRUPAL_DISABLED); // Set comments to one per page so that we are able to test paging without // needing to insert large numbers of comments. |