private function MailgunAdminSettingsFormTest::submitSettingsForm in Mailgun 8
Submits Mailgun settings form with given values and checks status message.
1 call to MailgunAdminSettingsFormTest::submitSettingsForm()
- MailgunAdminSettingsFormTest::testSettingsFormSubmit in tests/
src/ Functional/ MailgunAdminSettingsFormTest.php - Tests admin pages provided by Mailgun.
File
- tests/
src/ Functional/ MailgunAdminSettingsFormTest.php, line 72
Class
- MailgunAdminSettingsFormTest
- Tests that all provided admin pages are reachable.
Namespace
Drupal\Tests\mailgun\FunctionalCode
private function submitSettingsForm(array $values, $result_message) {
foreach ($values as $field_name => $field_value) {
$this
->getSession()
->getPage()
->fillField($field_name, $field_value);
}
$this
->getSession()
->getPage()
->pressButton('Save configuration');
$this
->assertSession()
->pageTextContains($result_message);
}