diff options
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r-- | modules/comment/comment.test | 5 |
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; |