summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-13 09:14:21 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-13 09:14:21 +0000
commitd6305a6616d4e9275ae61e82334285e9fb156a62 (patch)
tree80cefb8c62932263b2471fae8e3aae038680a1d8 /modules/comment
parenta542d8b716b050d35bef3f367fb925b027bce409 (diff)
downloadbrdo-d6305a6616d4e9275ae61e82334285e9fb156a62.tar.gz
brdo-d6305a6616d4e9275ae61e82334285e9fb156a62.tar.bz2
#653940 follow-up by carlos8f and sun: Fix fatal errors in tests and revert changes to error reporting in previous patch.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.test18
1 files changed, 10 insertions, 8 deletions
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;