public function SecKitTestCaseTest::testDisabledReferrerPolicy in Security Kit 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/SecKitTestCaseTest.php \Drupal\Tests\seckit\Functional\SecKitTestCaseTest::testDisabledReferrerPolicy()
Tests disabled Referrer-Policy.
File
- tests/
src/ Functional/ SecKitTestCaseTest.php, line 554
Class
- SecKitTestCaseTest
- Functional tests for Security Kit.
Namespace
Drupal\Tests\seckit\FunctionalCode
public function testDisabledReferrerPolicy() {
$form['seckit_various[referrer_policy]'] = FALSE;
$this
->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));
$this
->assertSession()
->responseHeaderEquals('Referrer-Policy', NULL);
}