You are here

protected function BotchaBaseWebTestCase::setUserLoginFormValues in BOTCHA Spam Prevention 7.3

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

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

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

File

tests/botcha.simpletest.test, line 323
Simpletest-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;
}