You are here

protected function SecuritytxtBaseTest::submitSignForm in Security.txt 8

Submit the 'Sign' form.

Parameters

array $edit: An associated array suitable for the drupalPostForm() method. It should have the following key defined: security_text.

1 call to SecuritytxtBaseTest::submitSignForm()
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 104

Class

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

Namespace

Drupal\Tests\securitytxt\Functional

Code

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