You are here

public function QueueMailFunctionalTest::testNonQueuedEmail in Queue Mail 8

Test that if we're not queuing any emails that they get sent as normal.

File

tests/src/Functional/QueueMailFunctionalTest.php, line 68

Class

QueueMailFunctionalTest
Tests queue mail functionality.

Namespace

Drupal\Tests\queue_mail\Functional

Code

public function testNonQueuedEmail() {

  // Send an email and ensure it was sent immediately.
  \Drupal::configFactory()
    ->getEditable('queue_mail.settings')
    ->set('queue_mail_keys', '')
    ->save();
  $this
    ->sendEmailAndTest('basic', FALSE);
}