Skip to content

Commit 677afee

Browse files
committed
Merge remote-tracking branch 'origin/7.x' into 7.x
2 parents 99edb26 + 88c93eb commit 677afee

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/Mail/MailManagerTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@ public function emptyTransportConfigDataProvider()
3737
public function testForgetMailer()
3838
{
3939
$this->app['config']->set('mail.mailers.custom_smtp', [
40-
'transport' => "smtp",
41-
'host' => "example.com",
42-
'port' => "25",
43-
'encryption' => "tls",
44-
'username' => "username",
45-
'password' => "password",
40+
'transport' => 'smtp',
41+
'host' => 'example.com',
42+
'port' => '25',
43+
'encryption' => 'tls',
44+
'username' => 'username',
45+
'password' => 'password',
4646
'timeout' => 10,
4747
]);
4848

4949
/** @var MailManager $mailManager */
5050
$mailManager = $this->app['mail.manager'];
51-
$mailManager->mailer("custom_smtp");
51+
$mailManager->mailer('custom_smtp');
5252

5353
$mailersProperty = new \ReflectionProperty($mailManager, 'mailers');
5454
$mailersProperty->setAccessible(true);
5555

56-
$this->assertArrayHasKey("custom_smtp", $mailersProperty->getValue($mailManager), "Mailer must exist in the \$mailers-property");
56+
$this->assertArrayHasKey('custom_smtp', $mailersProperty->getValue($mailManager), 'Mailer must exist in the $mailers-property');
5757

58-
$mailManager->forgetMailer("custom_smtp");
58+
$mailManager->forgetMailer('custom_smtp');
5959

60-
$this->assertArrayNotHasKey("custom_smtp", $mailersProperty->getValue($mailManager), "Mailer must not exist in the \$mailers-property as it must have been removed with MailManager::forgetMailer()");
60+
$this->assertArrayNotHasKey('custom_smtp', $mailersProperty->getValue($mailManager), 'Mailer must not exist in the $mailers-property as it must have been removed with MailManager::forgetMailer()');
6161
}
6262
}

0 commit comments

Comments
 (0)