You are here

public function SecKitTestCase::testEnabledFromOrigin in Security Kit 7

Same name and namespace in other branches
  1. 6 seckit.test \SecKitTestCase::testEnabledFromOrigin()

Tests enabled From-Origin.

File

./seckit.test, line 531
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/config/system/seckit', $form, t('Save configuration'));
  $this
    ->assertEqual('same', $this
    ->drupalGetHeader('From-Origin'), t('From-Origin is enabled and set to same.'));
}