public function SecKitTestCase::testXFrameOptionsIsDisabled in Security Kit 6
Same name and namespace in other branches
- 7 seckit.test \SecKitTestCase::testXFrameOptionsIsDisabled()
Tests disabled X-Frame-Options HTTP response header.
File
- ./
seckit.test, line 248 - Tests for Security Kit module.
Class
- SecKitTestCase
- Functional tests for Security Kit.
Code
public function testXFrameOptionsIsDisabled() {
$form['seckit_clickjacking[x_frame]'] = SECKIT_X_FRAME_DISABLE;
$this
->drupalPost('admin/settings/seckit', $form, t('Save configuration'));
$this
->assertFalse($this
->drupalGetHeader('X-Frame-Options'), t('X-Frame-Options is disabled.'));
}