public function SecKitTestCaseTest::testXframeOptionsIsDisabled in Security Kit 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SecKitTestCaseTest.php \Drupal\Tests\seckit\Functional\SecKitTestCaseTest::testXframeOptionsIsDisabled()
Tests disabled X-Frame-Options HTTP response header.
File
- tests/
src/ Functional/ SecKitTestCaseTest.php, line 444
Class
- SecKitTestCaseTest
- Functional tests for Security Kit.
Namespace
Drupal\Tests\seckit\FunctionalCode
public function testXframeOptionsIsDisabled() {
$form['seckit_clickjacking[x_frame]'] = SeckitInterface::X_FRAME_DISABLE;
$this
->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));
$this
->assertSession()
->responseHeaderEquals('X-Frame-Options', NULL);
}