From d6305a6616d4e9275ae61e82334285e9fb156a62 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 13 Dec 2009 09:14:21 +0000 Subject: #653940 follow-up by carlos8f and sun: Fix fatal errors in tests and revert changes to error reporting in previous patch. --- modules/comment/comment.test | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'modules/comment') diff --git a/modules/comment/comment.test b/modules/comment/comment.test index 6fd91907f..8a4373ef1 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -17,15 +17,17 @@ class CommentHelperCase extends DrupalWebTestCase { /** * Post comment. * - * @param object $node Node to post comment on. - * @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. + * @param $node + * Node to post comment on. + * @param $comment + * Comment body. + * @param $subject + * Comment subject. + * @param $contact + * Set to NULL for no contact info, TRUE to ignore success checking, and + * array of values to set contact info. */ - public static function postComment($node, $comment, $subject = '', $contact = NULL) { + function postComment($node, $comment, $subject = '', $contact = NULL) { $edit = array(); $edit['comment'] = $comment; -- cgit v1.2.3