You are here

public function SecKitTestCaseTest::testDisabledExpectCt in Security Kit 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SecKitTestCaseTest.php \Drupal\Tests\seckit\Functional\SecKitTestCaseTest::testDisabledExpectCt()

Tests disabled Expect-CT.

File

tests/src/Functional/SecKitTestCaseTest.php, line 575

Class

SecKitTestCaseTest
Functional tests for Security Kit.

Namespace

Drupal\Tests\seckit\Functional

Code

public function testDisabledExpectCt() {
  $form['seckit_ct[expect_ct]'] = FALSE;
  $this
    ->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));
  $this
    ->assertSession()
    ->responseHeaderEquals('Expect-CT', NULL);
}