public function SecKitTestCase::testDisabledFromOrigin in Security Kit 7
Same name and namespace in other branches
- 6 seckit.test \SecKitTestCase::testDisabledFromOrigin()
Tests disabled From-Origin.
File
- ./
seckit.test, line 521 - Tests for Security Kit module.
Class
- SecKitTestCase
- Functional tests for Security Kit.
Code
public function testDisabledFromOrigin() {
$form['seckit_various[from_origin]'] = FALSE;
$this
->drupalPost('admin/config/system/seckit', $form, t('Save configuration'));
$this
->assertFalse($this
->drupalGetHeader('From-Origin'), t('From-Origin is disabled.'));
}