public function SecKitTestCase::testXXSSProtectionIsDisabled in Security Kit 6
Same name and namespace in other branches
- 7 seckit.test \SecKitTestCase::testXXSSProtectionIsDisabled()
Tests disabled X-XSS-Protection HTTP response header.
File
- ./
seckit.test, line 156 - Tests for Security Kit module.
Class
- SecKitTestCase
- Functional tests for Security Kit.
Code
public function testXXSSProtectionIsDisabled() {
$form['seckit_xss[x_xss][select]'] = SECKIT_X_XSS_DISABLE;
$this
->drupalPost('admin/settings/seckit', $form, t('Save configuration'));
$this
->assertFalse($this
->drupalGetHeader('X-XSS-Protection'), t('X-XSS-Protection is disabled.'));
}