function BotchaBaseWebTestCase::checkPreConditions in BOTCHA Spam Prevention 6.2
Same name and namespace in other branches
- 6.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::checkPreConditions()
- 7.2 botcha.test \BotchaBaseWebTestCase::checkPreConditions()
- 7.3 tests/botcha.simpletest.test \BotchaBaseWebTestCase::checkPreConditions()
1 call to BotchaBaseWebTestCase::checkPreConditions()
File
- ./
botcha.test, line 334 - Tests for BOTCHA module.
Class
- BotchaBaseWebTestCase
- Base class for BOTCHA tests.
Code
function checkPreConditions($form, $should_pass, $button) {
switch ($form) {
case 'comment':
// @todo Abstract it.
// Check that comment form is enabled.
$this
->assertTrue(variable_get("botcha_enabled_comment_form", 0), "BOTCHA protection for comment_form must be enabled", 'BOTCHA');
break;
}
}