You are here

protected function CaptchaPersistenceTestCase::assertPreservedCsid in CAPTCHA 6.2

Same name and namespace in other branches
  1. 7 captcha.test \CaptchaPersistenceTestCase::assertPreservedCsid()
4 calls to CaptchaPersistenceTestCase::assertPreservedCsid()
CaptchaPersistenceTestCase::testPersistenceAlways in ./captcha.test
CaptchaPersistenceTestCase::testPersistenceOnlyOnce in ./captcha.test
CaptchaPersistenceTestCase::testPersistencePerFormInstance in ./captcha.test
CaptchaPersistenceTestCase::testPersistencePerFormType in ./captcha.test

File

./captcha.test, line 813
Tests for CAPTCHA module.

Class

CaptchaPersistenceTestCase

Code

protected function assertPreservedCsid($captcha_sid_initial) {
  $captcha_sid = $this
    ->getCaptchaSidFromForm();
  $this
    ->assertEqual($captcha_sid_initial, $captcha_sid, "CAPTCHA session ID should be preserved (expected: {$captcha_sid_initial}, found: {$captcha_sid}).");
}