You are here

protected function EmailActivationTest::sendMails in Search API Saved Searches 8

Sends all queued mails.

4 calls to EmailActivationTest::sendMails()
EmailActivationTest::testActivationEmailDisabled in tests/src/Kernel/EmailActivationTest.php
Tests that activation will be skipped if the "Send" option is disabled.
EmailActivationTest::testActivationMail in tests/src/Kernel/EmailActivationTest.php
Tests whether activation mails are sent correctly.
EmailActivationTest::testEmailPluginDisabled in tests/src/Kernel/EmailActivationTest.php
Tests that activation will be skipped if the "E-mail" plugin is disabled.
EmailActivationTest::testSavedSearchUpdate in tests/src/Kernel/EmailActivationTest.php
Tests that updating of saved searches is handled correctly.

File

tests/src/Kernel/EmailActivationTest.php, line 356

Class

EmailActivationTest
Tests whether activation mails are sent correctly.

Namespace

Drupal\Tests\search_api_saved_searches\Kernel

Code

protected function sendMails() {
  $this->container
    ->get('search_api_saved_searches.email_queue')
    ->destruct();
}