/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Integration/Mail/MailRoundRobinTransportTest.php
51 строка
1 KB
Lucas Michot
Move Testbench-based tests to tests/Integration (#61080)
07 авг 2026, 16:42
Не верифицирован
07 авг 2026, 16:42
486d136
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Integration\Mail; use Orchestra\Testbench\TestCase; use Symfony\Component\Mailer\Transport\RoundRobinTransport; class MailRoundRobinTransportTest extends TestCase { public function testGetRoundRobinTransportWithConfiguredTransports(): void { $this->app['config']->set('mail.default', 'roundrobin'); $this->app['config']->set('mail.mailers', [ 'roundrobin' => [ 'transport' => 'roundrobin', 'mailers' => [ 'sendmail', 'array', ], ], 'sendmail' => [ 'transport' => 'sendmail', 'path' => '/usr/sbin/sendmail -bs', ], 'array' => [ 'transport' => 'array', ], ]); $transport = app('mailer')->getSymfonyTransport(); $this->assertInstanceOf(RoundRobinTransport::class, $transport); } public function testGetRoundRobinTransportWithLaravel6StyleMailConfiguration(): void { $this->app['config']->set('mail.driver', 'roundrobin'); $this->app['config']->set('mail.mailers', [ 'sendmail', 'array', ]); $this->app['config']->set('mail.sendmail', '/usr/sbin/sendmail -bs'); $transport = app('mailer')->getSymfonyTransport(); $this->assertInstanceOf(RoundRobinTransport::class, $transport); } }