You are here

protected function SecuritytxtBaseTest::submitConfigureForm in Security.txt 8

Submit the 'Configure' form.

Parameters

array $edit: An associated array suitable for the drupalPostForm() method. It should have the following keys defined: enabled, contact_email, contact_phone, contact_url, encryption_key_url, policy_url, acknowledgement_url.

1 call to SecuritytxtBaseTest::submitConfigureForm()
SecuritytxtBaseTest::submitValidConfiguration in tests/src/Functional/SecuritytxtBaseTest.php
Submit a valid configuration to both the 'Configure' and 'Sign' forms.

File

tests/src/Functional/SecuritytxtBaseTest.php, line 90

Class

SecuritytxtBaseTest
Defines a base class for testing the Security.txt module.

Namespace

Drupal\Tests\securitytxt\Functional

Code

protected function submitConfigureForm(array $edit) {
  $path = 'admin/config/system/securitytxt';
  $submit = 'Save configuration';
  $options = [];
  $this
    ->drupalPostForm($path, $edit, $submit, $options);
}