You are here

public function CaptchaPointListBuilderTest::testBuildHeader in CAPTCHA 8

Test for buildHeader.

File

tests/src/Unit/Controller/CaptchaPointListBuilderTest.php, line 43

Class

CaptchaPointListBuilderTest
Tests for CaptchaPointListBuilder.

Namespace

Drupal\Tests\captcha\Unit\Controller

Code

public function testBuildHeader() {
  $header = $this->listBuilder
    ->buildHeader();
  $this
    ->assertArrayHasKey('form_id', $header);
  $this
    ->assertArrayHasKey('captcha_type', $header);
  $this
    ->assertArrayHasKey('operations', $header);
}