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