protected function DigestTest::getNotifier in Message Digest 8
Helper method to construct a digest notifier.
Parameters
\Drupal\message\MessageInterface $message: Mocked message for the notifier.
Return value
\Drupal\message_digest\Plugin\Notifier\Digest The message notifier.
4 calls to DigestTest::getNotifier()
- DigestTest::testDeliverUnsavedMessage in tests/
src/ Unit/ Plugin/ Notifier/ DigestTest.php - Test delivery without a saved message entity.
- DigestTest::testDeliverySavedOriginal in tests/
src/ Unit/ Plugin/ Notifier/ DigestTest.php - Test delivery with an unsaved message, but a saved original.
- DigestTest::testDeliveryUnsavedOriginal in tests/
src/ Unit/ Plugin/ Notifier/ DigestTest.php - Test delivery without a saved original message entity.
- DigestTest::testProcessTimeThreshold in tests/
src/ Unit/ Plugin/ Notifier/ DigestTest.php - Test that digests will be processed at the correct time.
File
- tests/
src/ Unit/ Plugin/ Notifier/ DigestTest.php, line 219
Class
- DigestTest
- Tests the Digest plugin.
Namespace
Drupal\Tests\message_digest\Unit\Plugin\NotifierCode
protected function getNotifier(MessageInterface $message) {
$logger = $this
->prophesize(LoggerChannelInterface::class)
->reveal();
$notifier = new Digest($this->configuration, $this->pluginId, $this->pluginDefinition, $logger, $this->entityTypeManager, $this->renderer, $message, $this->state, $this->connection, $this->time);
return $notifier;
}