You are here

protected function BotchaHoneypot2TestCase::setFormValues in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6.2 botcha.test \BotchaHoneypot2TestCase::setFormValues()
  2. 6.3 tests/botcha.simpletest.test \BotchaHoneypot2TestCase::setFormValues()
  3. 7.2 botcha.test \BotchaHoneypot2TestCase::setFormValues()

Helper function to generate a default form values array for any form.

Overrides BotchaBaseWebTestCase::setFormValues

File

tests/botcha.simpletest.test, line 1197
Simpletest-tests for BOTCHA module.

Class

BotchaHoneypot2TestCase

Code

protected function setFormValues($form, $should_pass, &$parameters = array()) {
  $edit = parent::setFormValues($form, $should_pass, $parameters);

  // Since we can't test javascript (is there a way to do it?) and Simpletest
  // can't evaluate javascript we should do nothing to break the submission.
  return $edit;
}