protected function BotchaSessionReuseAttackTestCase::assertBotchaSessionIdReuseAttackDetection in BOTCHA Spam Prevention 7
Same name and namespace in other branches
- 6 botcha.test \BotchaSessionReuseAttackTestCase::assertBotchaSessionIdReuseAttackDetection()
Assert that the BOTCHA session ID reuse attack was detected.
3 calls to BotchaSessionReuseAttackTestCase::assertBotchaSessionIdReuseAttackDetection()
- BotchaSessionReuseAttackTestCase::testBotchaSessionReuseAttackDetectionOnCommentPreview in ./
botcha.test - BotchaSessionReuseAttackTestCase::testBotchaSessionReuseAttackDetectionOnLoginForm in ./
botcha.test - BotchaSessionReuseAttackTestCase::testBotchaSessionReuseAttackDetectionOnNodeForm in ./
botcha.test
File
- ./
botcha.test, line 875 - Tests for BOTCHA module.
Class
Code
protected function assertBotchaSessionIdReuseAttackDetection() {
$this
->assertText(t(BOTCHA_SESSION_REUSE_ATTACK_ERROR_MESSAGE), 'BOTCHA session ID reuse attack should be detected.', 'BOTCHA');
// // There should be an error message about bad post.
// $this->assertText(t(BOTCHA_WRONG_RESPONSE_ERROR_MESSAGE),
// 'BOTCHA should be flagged as wrong.',
// 'BOTCHA');
}