public function QueueMailConfigurationTest::testChangeConfiguration in Queue Mail 8
Tests change of settings.
File
- tests/
src/ Functional/ QueueMailConfigurationTest.php, line 65
Class
- QueueMailConfigurationTest
- Tests configuration of Queue mail module.
Namespace
Drupal\Tests\queue_mail\FunctionalCode
public function testChangeConfiguration() {
$this
->drupalLogin($this->adminUser);
$this
->drupalGet(static::CONFIGURATION_PATH);
$edit = [
'queue_mail_keys' => '*',
'queue_mail_queue_time' => 60,
'queue_mail_queue_wait_time' => 15,
'threshold' => 100,
'requeue_interval' => 21600,
];
$this
->submitForm($edit, 'Save configuration');
$this
->drupalGet(static::CONFIGURATION_PATH);
foreach ($edit as $field => $value) {
$this
->assertSession()
->fieldValueEquals($field, $value);
}
}