protected function RemoveHttpHeadersTest::submitModuleSettingsForm in Remove HTTP headers 8
Submits the modules' settings form with given form content.
Parameters
array $form: The form content.
2 calls to RemoveHttpHeadersTest::submitModuleSettingsForm()
- RemoveHttpHeadersTest::testRemoveNoHeaders in tests/
src/ Functional/ RemoveHttpHeadersTest.php - Ensure HTTP headers and meta are present when no removals configured.
- RemoveHttpHeadersTest::testRemoveSomeHeaders in tests/
src/ Functional/ RemoveHttpHeadersTest.php - Ensure default HTTP headers and meta are removed when configured.
File
- tests/
src/ Functional/ RemoveHttpHeadersTest.php, line 67
Class
- RemoveHttpHeadersTest
- Functional tests for Remove HTTP Headers module.
Namespace
Drupal\Tests\remove_http_headers\FunctionalCode
protected function submitModuleSettingsForm(array $form) : void {
$this
->drupalGet(self::SETTINGS_FORM_PATH);
$this
->submitForm($form, $this
->t('Save configuration')
->render());
}