Skip to content

Commit cccefd0

Browse files
committed
ICL: Method renamed.
1 parent 1eb3e30 commit cccefd0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

tests/Loggable/Notifications/EmailChannel/EmailChannelTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

tests/fixture/app/Console/Commands/EmailNotificationsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function createEmailChannelHandler()
2727
return $this->getEmailChannelHandler();
2828
}
2929

30-
public function mailerHandler()
30+
public function emailChannelHandler()
3131
{
3232
return last($this->icLogger()->getHandlers());
3333
}

tests/fixture/app/Console/Commands/EmailNotificationsDeduplicationCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function handle()
2727
$this->logInfo('Done!');
2828
}
2929

30-
public function mailerHandler()
30+
public function emailChannelHandler()
3131
{
3232
return last($this->icLogger()->getHandlers());
3333
}

tests/fixture/app/Console/Commands/EmailNotificationsInvalidRecipientsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function handle()
2424
$this->logInfo('Done!');
2525
}
2626

27-
public function mailerHandler()
27+
public function emailChannelHandler()
2828
{
2929
return last($this->icLogger()->getHandlers());
3030
}

0 commit comments

Comments
 (0)