protected function DigestTestBase::sendDigests in Message Digest 8
Helper method to process and deliver digests.
4 calls to DigestTestBase::sendDigests()
- MessageDigestTest::testNotifierDelivery in tests/
src/ Kernel/ MessageDigestTest.php - Tests the notifier sending and delivery.
- MessageDigestTest::testOrphanedMessage in tests/
src/ Kernel/ MessageDigestTest.php - Tests that a message is not sent if its owner has been deleted.
- TokenTest::testTokenRemoveEmailSubject in tests/
src/ Kernel/ TokenTest.php - Tests that the email subject (or other view modes) can be removed.
- TokenTest::testTokenReplacement in tests/
src/ Kernel/ TokenTest.php - Tests token replacement when rendering digests.
File
- tests/
src/ Kernel/ DigestTestBase.php, line 82
Class
- DigestTestBase
- Base class for kernel tests for the message digest module.
Namespace
Drupal\Tests\message_digest\KernelCode
protected function sendDigests() {
// Queue digests.
$this->digestManager
->processDigests();
// Run queue.
$this->container
->get('cron')
->run();
}