From 4b10fc3d8fcfbe67a2571d2dda9bb5d74370b41f Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 18 Sep 2024 13:58:19 +0200 Subject: [PATCH] deprecate the TransportFactoryTestCase --- Tests/Transport/SesTransportFactoryTest.php | 7 +++++-- composer.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Tests/Transport/SesTransportFactoryTest.php b/Tests/Transport/SesTransportFactoryTest.php index 4452c9c..b529c3c 100644 --- a/Tests/Transport/SesTransportFactoryTest.php +++ b/Tests/Transport/SesTransportFactoryTest.php @@ -19,12 +19,15 @@ use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesHttpAsyncAwsTransport; use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesSmtpTransport; use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory; -use Symfony\Component\Mailer\Test\TransportFactoryTestCase; +use Symfony\Component\Mailer\Test\AbstractTransportFactoryTestCase; +use Symfony\Component\Mailer\Test\IncompleteDsnTestTrait; use Symfony\Component\Mailer\Transport\Dsn; use Symfony\Component\Mailer\Transport\TransportFactoryInterface; -class SesTransportFactoryTest extends TransportFactoryTestCase +class SesTransportFactoryTest extends AbstractTransportFactoryTestCase { + use IncompleteDsnTestTrait; + public function getFactory(): TransportFactoryInterface { return new SesTransportFactory(null, new MockHttpClient(), new NullLogger()); diff --git a/composer.json b/composer.json index 9002e0e..bfa2af6 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": ">=8.2", "async-aws/ses": "^1.3", - "symfony/mailer": "^6.4|^7.0" + "symfony/mailer": "^7.2" }, "require-dev": { "symfony/http-client": "^6.4|^7.0"