You are here

protected function BotchaSessionReuseAttackTestCase::assertBotchaSessionIdReuseAttackDetection in BOTCHA Spam Prevention 6

Same name and namespace in other branches
  1. 7 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 876
Tests for BOTCHA module.

Class

BotchaSessionReuseAttackTestCase

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');
}