summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-10 15:39:43 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-10 15:39:43 +0000
commitc2f26d3368d38ce4d73aa0089d09d2d78ccf9285 (patch)
tree3db0c442068bd5bfb2a91e26675dfe9019cc8fab /modules/comment/comment.test
parent3016bcbd235b75e60a44566368c2d3702a625174 (diff)
downloadbrdo-c2f26d3368d38ce4d73aa0089d09d2d78ccf9285.tar.gz
brdo-c2f26d3368d38ce4d73aa0089d09d2d78ccf9285.tar.bz2
- Patch #653940 by sun: tests weren't reporting all errors.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 047cb91b3..60c4b3142 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -21,8 +21,11 @@ class CommentHelperCase extends DrupalWebTestCase {
* @param string $comment Comment body.
* @param string $subject Comment subject.
* @param mixed $contact Set to NULL for no contact info, TRUE to ignore success checking, and array of values to set contact info.
+ *
+ * This needs to be static to be invoked via CommentHelperCase::postComment()
+ * in other tests.
*/
- function postComment($node, $comment, $subject = '', $contact = NULL) {
+ public static function postComment($node, $comment, $subject = '', $contact = NULL) {
$edit = array();
$edit['comment'] = $comment;