You are here

protected function BotchaBaseWebTestCase::setCommentFormValues in BOTCHA Spam Prevention 6.2

Same name and namespace in other branches
  1. 6 botcha.test \BotchaBaseWebTestCase::setCommentFormValues()
  2. 6.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::setCommentFormValues()
  3. 7 botcha.test \BotchaBaseWebTestCase::setCommentFormValues()
  4. 7.2 botcha.test \BotchaBaseWebTestCase::setCommentFormValues()
  5. 7.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::setCommentFormValues()
1 call to BotchaBaseWebTestCase::setCommentFormValues()
BotchaBaseWebTestCase::setFormValues in ./botcha.test
Helper function to generate a default form values array for any form.

File

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

Class

BotchaBaseWebTestCase
Base class for BOTCHA tests.

Code

protected function setCommentFormValues($should_pass = NULL) {

  // @todo Abstract it.

  //$langcode = LANGUAGE_NONE;
  $edit = array(
    'subject' => 'comment_subject ' . $this
      ->randomName(32),
    // @todo Abstract it.

    //"comment_body[$langcode][0][value]" => 'comment_body ' . $this->randomName(256),
    'comment' => 'comment_body ' . $this
      ->randomName(256),
  );
  return $edit;
}