From ecc4a366a3d444b2c3a258976a21a1623f00cc35 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/FreeMobileTransportFactoryTest.php | 15 +++++++++++++-- composer.json | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Tests/FreeMobileTransportFactoryTest.php b/Tests/FreeMobileTransportFactoryTest.php index c1cd740..e89fd8f 100644 --- a/Tests/FreeMobileTransportFactoryTest.php +++ b/Tests/FreeMobileTransportFactoryTest.php @@ -12,10 +12,15 @@ namespace Symfony\Component\Notifier\Bridge\FreeMobile\Tests; use Symfony\Component\Notifier\Bridge\FreeMobile\FreeMobileTransportFactory; -use Symfony\Component\Notifier\Test\TransportFactoryTestCase; +use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase; +use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait; +use Symfony\Component\Notifier\Test\MissingRequiredOptionTestTrait; -final class FreeMobileTransportFactoryTest extends TransportFactoryTestCase +final class FreeMobileTransportFactoryTest extends AbstractTransportFactoryTestCase { + use IncompleteDsnTestTrait; + use MissingRequiredOptionTestTrait; + public function createFactory(): FreeMobileTransportFactory { return new FreeMobileTransportFactory(); @@ -45,4 +50,10 @@ public static function unsupportedSchemeProvider(): iterable yield ['somethingElse://login:pass@default?phone=0611223344']; yield ['somethingElse://login:pass@default']; // missing "phone" option } + + public static function incompleteDsnProvider(): iterable + { + yield ['freemobile://login@default?phone=0611223344']; + yield ['freemobile://:pass@default?phone=0611223344']; + } } diff --git a/composer.json b/composer.json index cd9b14e..8067f44 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": ">=8.2", "symfony/http-client": "^6.4|^7.0", - "symfony/notifier": "^6.4|^7.0" + "symfony/notifier": "^7.2" }, "autoload": { "psr-4": { "Symfony\\Component\\Notifier\\Bridge\\FreeMobile\\": "" },