mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-15 09:34:09 +02:00
Auto-detecting of mime type for emails and switched to HtmlFormatter for emails by default, fixes #577
This commit is contained in:
@@ -61,6 +61,7 @@ class MailHandlerTest extends TestCase
|
||||
public function testHandle()
|
||||
{
|
||||
$handler = $this->getMockForAbstractClass('Monolog\\Handler\\MailHandler');
|
||||
$handler->setFormatter(new \Monolog\Formatter\LineFormatter);
|
||||
|
||||
$record = $this->getRecord();
|
||||
$records = [$record];
|
||||
|
@@ -78,6 +78,7 @@ class NativeMailerHandlerTest extends TestCase
|
||||
$from = 'receiver@example.org';
|
||||
|
||||
$mailer = new NativeMailerHandler($to, $subject, $from);
|
||||
$mailer->setFormatter(new \Monolog\Formatter\LineFormatter);
|
||||
$mailer->handleBatch([]);
|
||||
|
||||
// batch is empty, nothing sent
|
||||
|
Reference in New Issue
Block a user