public function SecKitTestCase::testDisabledFeaturePolicy in Security Kit 7
Tests disabled feature-policy.
File
- ./
seckit.test, line 564 - Tests for Security Kit module.
Class
- SecKitTestCase
- Functional tests for Security Kit.
Code
public function testDisabledFeaturePolicy() {
$form['seckit_fp[feature_policy]'] = FALSE;
$this
->drupalPost('admin/config/system/seckit', $form, t('Save configuration'));
$this
->assertFalse($this
->drupalGetHeader('Feature-Policy'), t('Feature-Policy is disabled.'));
}