protected function BotchaBaseWebTestCase::setNodeFormValues in BOTCHA Spam Prevention 7.2
Same name and namespace in other branches
- 6 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
- 6.2 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
- 6.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::setNodeFormValues()
- 7 botcha.test \BotchaBaseWebTestCase::setNodeFormValues()
- 7.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::setNodeFormValues()
1 call to BotchaBaseWebTestCase::setNodeFormValues()
- BotchaBaseWebTestCase::setFormValues in ./
botcha.test - Helper function to generate a default form values array for any form.
File
- ./
botcha.test, line 181 - Tests for BOTCHA module.
Class
- BotchaBaseWebTestCase
- Base class for BOTCHA tests.
Code
protected function setNodeFormValues($should_pass = NULL) {
$langcode = LANGUAGE_NONE;
$edit = array(
'title' => 'node_title ' . $this
->randomName(32),
"body[{$langcode}][0][value]" => 'node_body ' . $this
->randomName(256),
);
return $edit;
}