You are here

public function SecKitTestCaseTest::testDisabledFromOrigin in Security Kit 8

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

Tests disabled From-Origin.

File

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

Class

SecKitTestCaseTest
Functional tests for Security Kit.

Namespace

Drupal\Tests\seckit\Functional

Code

public function testDisabledFromOrigin() {
  $form['seckit_various[from_origin]'] = FALSE;
  $this
    ->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));
  $this
    ->assertSession()
    ->responseHeaderEquals('From-Origin', NULL);
}