Skip to content

Commit 1eb3e30

Browse files
committed
ICL: Null driver tests added.
1 parent 5bea753 commit 1eb3e30

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Loggable/Notifications/EmailChannel/EmailChannelTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ public function it_validates_and_filters_notification_recipients()
1919
$this->assertNotInstanceOf(SwiftMailerHandler::class, $handler);
2020
}
2121

22+
/** @test */
23+
public function it_is_disabled_on_null_driver()
24+
{
25+
config(['mail.driver' => 'null']);
26+
27+
$handler = $this->runConsoleCommand(EmailNotificationsCommand::class)->createEmailChannelHandler();
28+
29+
$this->assertFalse($handler);
30+
}
31+
2232
/** @test */
2333
public function it_uses_configured_monolog_swift_mailer_handler_on_mail_driver()
2434
{

0 commit comments

Comments
 (0)