You are here

public function QueueMailConfigurationTest::testDefaultConfiguration in Queue Mail 8

Tests default settings on the settings form.

File

tests/src/Functional/QueueMailConfigurationTest.php, line 45

Class

QueueMailConfigurationTest
Tests configuration of Queue mail module.

Namespace

Drupal\Tests\queue_mail\Functional

Code

public function testDefaultConfiguration() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet(static::CONFIGURATION_PATH);
  $default_values = [
    'queue_mail_keys' => '',
    'queue_mail_queue_time' => 15,
    'queue_mail_queue_wait_time' => 0,
    'threshold' => 50,
    'requeue_interval' => 10800,
  ];
  foreach ($default_values as $field => $value) {
    $this
      ->assertSession()
      ->fieldValueEquals($field, $value);
  }
}