You are here

public function SecKitTestCase::testDisabledFromOrigin in Security Kit 6

Same name and namespace in other branches
  1. 7 seckit.test \SecKitTestCase::testDisabledFromOrigin()

Tests disabled From-Origin.

File

./seckit.test, line 326
Tests for Security Kit module.

Class

SecKitTestCase
Functional tests for Security Kit.

Code

public function testDisabledFromOrigin() {
  $form['seckit_various[from_origin]'] = FALSE;
  $this
    ->drupalPost('admin/settings/seckit', $form, t('Save configuration'));
  $this
    ->assertFalse($this
    ->drupalGetHeader('From-Origin'), t('From-Origin is disabled.'));
}