@@ -15,7 +15,7 @@ class EmailChannelTest extends TestCase
1515 /** @test */
1616 public function it_validates_and_filters_notification_recipients ()
1717 {
18- $ handler = $ this ->runConsoleCommand (EmailNotificationsInvalidRecipientsCommand::class)->mailerHandler ();
18+ $ handler = $ this ->runConsoleCommand (EmailNotificationsInvalidRecipientsCommand::class)->emailChannelHandler ();
1919 $ this ->assertNotInstanceOf (SwiftMailerHandler::class, $ handler );
2020 }
2121
@@ -33,7 +33,7 @@ public function it_is_disabled_on_null_driver()
3333 public function it_uses_configured_monolog_swift_mailer_handler_on_mail_driver ()
3434 {
3535 config (['mail.driver ' => 'mail ' ]);
36- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
36+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
3737
3838 $ this ->assertMailerHandlersEqual ($ this ->composeSwiftMailerHandler (), $ handler );
3939 }
@@ -42,7 +42,7 @@ public function it_uses_configured_monolog_swift_mailer_handler_on_mail_driver()
4242 public function it_uses_configured_monolog_swift_mailer_handler_on_smtp_driver ()
4343 {
4444 config (['mail.driver ' => 'smtp ' ]);
45- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
45+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
4646
4747 $ this ->assertMailerHandlersEqual ($ this ->composeSwiftMailerHandler (), $ handler );
4848 }
@@ -51,7 +51,7 @@ public function it_uses_configured_monolog_swift_mailer_handler_on_smtp_driver()
5151 public function it_uses_configured_monolog_swift_mailer_handler_on_sendmail_driver ()
5252 {
5353 config (['mail.driver ' => 'sendmail ' ]);
54- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
54+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
5555
5656 $ this ->assertMailerHandlersEqual ($ this ->composeSwiftMailerHandler (), $ handler );
5757 }
@@ -60,7 +60,7 @@ public function it_uses_configured_monolog_swift_mailer_handler_on_sendmail_driv
6060 public function it_uses_configured_monolog_mandrill_mailer_handler_on_mandrill_driver ()
6161 {
6262 config (['mail.driver ' => 'mandrill ' , 'services.mandrill.secret ' => 'secret ' ]);
63- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
63+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
6464
6565 $ this ->assertMailerHandlersEqual ($ this ->composeMandrillMailerHandler (), $ handler );
6666 }
@@ -69,7 +69,7 @@ public function it_uses_configured_monolog_mandrill_mailer_handler_on_mandrill_d
6969 public function it_uses_configured_monolog_native_mailer_handler_on_other_drivers ()
7070 {
7171 config (['mail.driver ' => 'any-other ' ]);
72- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
72+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
7373
7474 $ this ->assertMailerHandlersEqual ($ this ->composeNativeMailerHandler (), $ handler );
7575 }
@@ -78,7 +78,7 @@ public function it_uses_configured_monolog_native_mailer_handler_on_other_driver
7878 public function it_uses_configured_monolog_deduplication_handler_if_deduplication_enabled ()
7979 {
8080 config (['mail.driver ' => 'any-other ' ]);
81- $ handler = $ this ->runConsoleCommand (EmailNotificationsDeduplicationCommand::class)->mailerHandler ();
81+ $ handler = $ this ->runConsoleCommand (EmailNotificationsDeduplicationCommand::class)->emailChannelHandler ();
8282 $ handler ->flush ();
8383
8484 $ this ->assertMailerHandlersEqual ($ this ->composeDeduplicationHandler (), $ handler );
0 commit comments