You are here

protected function BotchaBaseWebTestCase::setUserLoginFormValues in BOTCHA Spam Prevention 6.2

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

Helper function to generate a default form values array for comment forms

1 call to BotchaBaseWebTestCase::setUserLoginFormValues()
BotchaBaseWebTestCase::setFormValues in ./botcha.test
Helper function to generate a default form values array for any form.

File

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

Class

BotchaBaseWebTestCase
Base class for BOTCHA tests.

Code

protected function setUserLoginFormValues($should_pass) {
  $edit = array(
    'name' => $this->normal_user->name,
    'pass' => $this->normal_user->pass_raw,
  );
  return $edit;
}