public function SecKitTestCaseTest::testEnabledFromOrigin in Security Kit 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SecKitTestCaseTest.php \Drupal\Tests\seckit\Functional\SecKitTestCaseTest::testEnabledFromOrigin()
Tests enabled From-Origin.
File
- tests/
src/ Functional/ SecKitTestCaseTest.php, line 542
Class
- SecKitTestCaseTest
- Functional tests for Security Kit.
Namespace
Drupal\Tests\seckit\FunctionalCode
public function testEnabledFromOrigin() {
$form = [
'seckit_various[from_origin]' => TRUE,
'seckit_various[from_origin_destination]' => 'same',
];
$this
->drupalPostForm('admin/config/system/seckit', $form, t('Save configuration'));
$this
->assertSession()
->responseHeaderEquals('From-Origin', 'same');
}