protected function BotchaBaseWebTestCase::setNodeFormValues in BOTCHA Spam Prevention 7.3
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.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;
}