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