You are here

protected function QueueMailFunctionalTest::setAllEmailsToBeQueued in Queue Mail 8

Sets settings that all emails have to be queued for testing.

4 calls to QueueMailFunctionalTest::setAllEmailsToBeQueued()
QueueMailFunctionalTest::testCancelMessage in tests/src/Functional/QueueMailFunctionalTest.php
Test that message sending may be canceled.
QueueMailFunctionalTest::testFailMessage in tests/src/Functional/QueueMailFunctionalTest.php
Test that message sending may be failed.
QueueMailFunctionalTest::testQueuedEmail in tests/src/Functional/QueueMailFunctionalTest.php
Test that if we are queuing emails, that they get queued.
QueueMailFunctionalTest::testSkippedEmail in tests/src/Functional/QueueMailFunctionalTest.php
Test that messages are not queued if the the "send" flag is FALSE.

File

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

Class

QueueMailFunctionalTest
Tests queue mail functionality.

Namespace

Drupal\Tests\queue_mail\Functional

Code

protected function setAllEmailsToBeQueued() {

  // Set all emails to be queued and test.
  \Drupal::configFactory()
    ->getEditable('queue_mail.settings')
    ->set('queue_mail_keys', '*')
    ->save();
}