You are here

public function SecKitTestCase::testReferrerPolicyIsDisabled in Security Kit 7

Tests disabled Referrer-Policy HTTP response header.

File

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

Class

SecKitTestCase
Functional tests for Security Kit.

Code

public function testReferrerPolicyIsDisabled() {
  $form['seckit_various[referrer_policy]'] = FALSE;
  $this
    ->drupalPost('admin/config/system/seckit', $form, t('Save configuration'));
  $this
    ->assertFalse($this
    ->drupalGetHeader('Referrer-Policy'), t('Referrer-Policy is disabled.'));
}