You are here

protected function BotchaBaseWebTestCase::setNodeFormValues in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
  2. 6.2 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
  3. 6.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::setNodeFormValues()
  4. 7 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
  5. 7.2 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
1 call to BotchaBaseWebTestCase::setNodeFormValues()
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 177
Simpletest-tests for BOTCHA module.

Class

BotchaBaseWebTestCase
Base class for BOTCHA tests.

Code

protected function setNodeFormValues($should_pass = NULL) {

  // @todo Abstract it.

  //$langcode = 'und';
  $langcode = LANGUAGE_NONE;
  $edit = array(
    'title' => 'node_title ' . $this
      ->randomName(32),
    "body[{$langcode}][0][value]" => 'node_body ' . $this
      ->randomName(256),
  );
  return $edit;
}