@@ -15,7 +15,7 @@ class EmailChannelTest extends TestCase
15
15
/** @test */
16
16
public function it_validates_and_filters_notification_recipients ()
17
17
{
18
- $ handler = $ this ->runConsoleCommand (EmailNotificationsInvalidRecipientsCommand::class)->mailerHandler ();
18
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsInvalidRecipientsCommand::class)->emailChannelHandler ();
19
19
$ this ->assertNotInstanceOf (SwiftMailerHandler::class, $ handler );
20
20
}
21
21
@@ -33,7 +33,7 @@ public function it_is_disabled_on_null_driver()
33
33
public function it_uses_configured_monolog_swift_mailer_handler_on_mail_driver ()
34
34
{
35
35
config (['mail.driver ' => 'mail ' ]);
36
- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
36
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
37
37
38
38
$ this ->assertMailerHandlersEqual ($ this ->composeSwiftMailerHandler (), $ handler );
39
39
}
@@ -42,7 +42,7 @@ public function it_uses_configured_monolog_swift_mailer_handler_on_mail_driver()
42
42
public function it_uses_configured_monolog_swift_mailer_handler_on_smtp_driver ()
43
43
{
44
44
config (['mail.driver ' => 'smtp ' ]);
45
- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
45
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
46
46
47
47
$ this ->assertMailerHandlersEqual ($ this ->composeSwiftMailerHandler (), $ handler );
48
48
}
@@ -51,7 +51,7 @@ public function it_uses_configured_monolog_swift_mailer_handler_on_smtp_driver()
51
51
public function it_uses_configured_monolog_swift_mailer_handler_on_sendmail_driver ()
52
52
{
53
53
config (['mail.driver ' => 'sendmail ' ]);
54
- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
54
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
55
55
56
56
$ this ->assertMailerHandlersEqual ($ this ->composeSwiftMailerHandler (), $ handler );
57
57
}
@@ -60,7 +60,7 @@ public function it_uses_configured_monolog_swift_mailer_handler_on_sendmail_driv
60
60
public function it_uses_configured_monolog_mandrill_mailer_handler_on_mandrill_driver ()
61
61
{
62
62
config (['mail.driver ' => 'mandrill ' , 'services.mandrill.secret ' => 'secret ' ]);
63
- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
63
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
64
64
65
65
$ this ->assertMailerHandlersEqual ($ this ->composeMandrillMailerHandler (), $ handler );
66
66
}
@@ -69,7 +69,7 @@ public function it_uses_configured_monolog_mandrill_mailer_handler_on_mandrill_d
69
69
public function it_uses_configured_monolog_native_mailer_handler_on_other_drivers ()
70
70
{
71
71
config (['mail.driver ' => 'any-other ' ]);
72
- $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->mailerHandler ();
72
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsCommand::class)->emailChannelHandler ();
73
73
74
74
$ this ->assertMailerHandlersEqual ($ this ->composeNativeMailerHandler (), $ handler );
75
75
}
@@ -78,7 +78,7 @@ public function it_uses_configured_monolog_native_mailer_handler_on_other_driver
78
78
public function it_uses_configured_monolog_deduplication_handler_if_deduplication_enabled ()
79
79
{
80
80
config (['mail.driver ' => 'any-other ' ]);
81
- $ handler = $ this ->runConsoleCommand (EmailNotificationsDeduplicationCommand::class)->mailerHandler ();
81
+ $ handler = $ this ->runConsoleCommand (EmailNotificationsDeduplicationCommand::class)->emailChannelHandler ();
82
82
$ handler ->flush ();
83
83
84
84
$ this ->assertMailerHandlersEqual ($ this ->composeDeduplicationHandler (), $ handler );
0 commit comments