public function spam($commentOn, $comment, $feedback) { $comment->spamStatus = PropertySpamStatus::SPAM; $comment->save(); MollomMessage::feedback($comment->spamSessionID, $feedback); $this->notice(t('Comment marked as spam')); $this->redirectOnSuccess($commentOn); }
public function testFeedbackProblem() { CoOrg::config()->set('mollom/serverlist', array('outdated')); $this->assertTrue(MollomMessage::feedback('some-sess-id', 'profanity')); }