You are here

protected function BotchaBaseWebTestCase::setNodeFormValues in BOTCHA Spam Prevention 6

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

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

2 calls to BotchaBaseWebTestCase::setNodeFormValues()
BotchaSessionReuseAttackTestCase::testBotchaSessionReuseAttackDetectionOnNodeForm in ./botcha.test
BotchaTestCase::testBotchaAfterNodePreview in ./botcha.test
Test if BOTCHA is applied when previewing nodes: node preview should have BOTCHA again. The preview functionality of comments and nodes works slightly different under the hood. BOTCHA module should be able to handle both.

File

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

Class

BotchaBaseWebTestCase
Base class for BOTCHA tests.

Code

protected function setNodeFormValues() {
  $edit = array(
    'title' => 'node_title ' . $this
      ->randomName(32),
    'body' => 'node_body ' . $this
      ->randomName(256),
  );
  return $edit;
}