protected function BotchaAdminTestCase::assertBotchaSetting in BOTCHA Spam Prevention 6
Same name and namespace in other branches
- 7 botcha.test \BotchaAdminTestCase::assertBotchaSetting()
Helper function for checking BOTCHA setting of a form.
Parameters
$form_id the form_id of the form to investigate.:
$challenge_type what the challenge type should be:: NULL, 'none', 'default' or something like 'default'
1 call to BotchaAdminTestCase::assertBotchaSetting()
- BotchaAdminTestCase::testBotchaAdminLinks in ./
botcha.test - Testing of the BOTCHA administration links.
File
- ./
botcha.test, line 559 - Tests for BOTCHA module.
Class
Code
protected function assertBotchaSetting($form_id, $challenge_type) {
$result = botcha_get_form_id_setting(self::COMMENT_FORM_ID, TRUE);
$this
->assertEqual($result, $challenge_type, t('Check BOTCHA setting for form: expected: @expected, received: @received.', array(
'@expected' => var_export($challenge_type, TRUE),
'@received' => var_export($result, TRUE),
)), 'BOTCHA');
}