You are here

public function SecKitTestCaseTest::testDisabledFeaturePolicy in Security Kit 8

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

Tests disabled feature-policy.

File

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

Class

SecKitTestCaseTest
Functional tests for Security Kit.

Namespace

Drupal\Tests\seckit\Functional

Code

public function testDisabledFeaturePolicy() {
  $form['seckit_fp[feature_policy]'] = FALSE;
  $this
    ->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));
  $this
    ->assertSession()
    ->responseHeaderEquals('Feature-Policy', NULL);
}