You are here

protected function CaptchaPersistenceTest::assertDifferentCsid in CAPTCHA 8

Check if message about SID present.

Parameters

string $captcha_sid_initial: Captcha SID token.

3 calls to CaptchaPersistenceTest::assertDifferentCsid()
CaptchaPersistenceTest::testPersistenceOnlyOnce in tests/src/Functional/CaptchaPersistenceTest.php
Test Persistence "Only once".
CaptchaPersistenceTest::testPersistencePerFormInstance in tests/src/Functional/CaptchaPersistenceTest.php
Test persistence per form instance.
CaptchaPersistenceTest::testPersistencePerFormType in tests/src/Functional/CaptchaPersistenceTest.php
Test Persistence per form type.

File

tests/src/Functional/CaptchaPersistenceTest.php, line 62

Class

CaptchaPersistenceTest
Tests CAPTCHA Persistence.

Namespace

Drupal\Tests\captcha\Functional

Code

protected function assertDifferentCsid($captcha_sid_initial) {
  $captcha_sid = $this
    ->getCaptchaSidFromForm();
  $this
    ->assertNotEquals($captcha_sid_initial, $captcha_sid, "CAPTCHA session ID should be different.");
}