use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridApiTransport;
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridSmtpTransport;
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
use Symfony\Component\Mailer\Transport\Dsn;
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
class SendgridTransportFactoryTest extends TransportFactoryTestCase
{ public function getFactory(): TransportFactoryInterface
{ return new SendgridTransportFactory(null,
new MockHttpClient(),
new NullLogger());
} public static function supportsProvider(): iterable
{ yield [ new Dsn('sendgrid+api', 'default'
),
true,
];
yield [ new Dsn('sendgrid', 'default'
),