private function AdminSettingsTest::createDummyMessage in Sparkpost email 8.2
Helper to create a dummy message.
Return value
\Drupal\sparkpost\MessageWrapperInterface The message wrapper
1 call to AdminSettingsTest::createDummyMessage()
- AdminSettingsTest::testSkipQueueOnCron in tests/
src/ Functional/ AdminSettingsTest.php - Test that queue is not processed on cron, if indicated by settings.
File
- tests/
src/ Functional/ AdminSettingsTest.php, line 126
Class
- AdminSettingsTest
- Test basic functionality.
Namespace
Drupal\Tests\sparkpost\FunctionalCode
private function createDummyMessage() {
/** @var \Drupal\sparkpost\MessageWrapperInterface $message */
$message = \Drupal::service('sparkpost.message_wrapper');
$message
->setDrupalMessage([]);
$message
->setSparkpostMessage([]);
return $message;
}