From c2f26d3368d38ce4d73aa0089d09d2d78ccf9285 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Dec 2009 15:39:43 +0000 Subject: - Patch #653940 by sun: tests weren't reporting all errors. --- modules/comment/comment.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/comment/comment.test') 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; -- cgit v1.2.3