use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailSmtpTransport;
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory;
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
use Symfony\Component\Mailer\Transport\Dsn;
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
class GmailTransportFactoryTest extends TransportFactoryTestCase
{ public function getFactory(): TransportFactoryInterface
{ return new GmailTransportFactory(null,
new MockHttpClient(),
new NullLogger());
} public static function supportsProvider(): iterable
{ yield [ new Dsn('gmail', 'default'
),
true,
];
yield [ new Dsn('gmail+smtp', 'default'
),