public function SecKitTestCase::testEnabledFromOrigin in Security Kit 6
Same name and namespace in other branches
- 7 seckit.test \SecKitTestCase::testEnabledFromOrigin()
Tests enabled From-Origin.
File
- ./
seckit.test, line 336 - Tests for Security Kit module.
Class
- SecKitTestCase
- Functional tests for Security Kit.
Code
public function testEnabledFromOrigin() {
$form = array(
'seckit_various[from_origin]' => TRUE,
'seckit_various[from_origin_destination]' => 'same',
);
$this
->drupalPost('admin/settings/seckit', $form, t('Save configuration'));
$this
->assertEqual('same', $this
->drupalGetHeader('From-Origin'), t('From-Origin is enabled and set to same.'));
}