public function SecKitTestCase::testXXSSProtectionIs1Block in Security Kit 7
Tests set to 1; mode=block X-XSS-Protection HTTP response header.
File
- ./
seckit.test, line 371 - Tests for Security Kit module.
Class
- SecKitTestCase
- Functional tests for Security Kit.
Code
public function testXXSSProtectionIs1Block() {
$form['seckit_xss[x_xss][select]'] = SECKIT_X_XSS_1_BLOCK;
$this
->drupalPost('admin/config/system/seckit', $form, t('Save configuration'));
$this
->assertEqual('1; mode=block', $this
->drupalGetHeader('X-XSS-Protection'), t('X-XSS-Protection is set to 1; mode=block.'));
}