You are here

protected function BotchaObscureUrlTestCase::setFormValues in BOTCHA Spam Prevention 6.2

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

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

Overrides BotchaBaseWebTestCase::setFormValues

File

./botcha.test, line 1098
Tests for BOTCHA module.

Class

BotchaObscureUrlTestCase

Code

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

  // 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;
}