From c35612c83c0295143e10cb4ce7ff942b63ff8024 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/SipgateTransportFactoryTest.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Tests/SipgateTransportFactoryTest.php b/Tests/SipgateTransportFactoryTest.php index 5656e6f..909bafb 100644 --- a/Tests/SipgateTransportFactoryTest.php +++ b/Tests/SipgateTransportFactoryTest.php @@ -12,10 +12,13 @@ namespace Symfony\Component\Notifier\Bridge\Sipgate\Tests; use Symfony\Component\Notifier\Bridge\Sipgate\SipgateTransportFactory; -use Symfony\Component\Notifier\Test\TransportFactoryTestCase; +use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase; +use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait; -class SipgateTransportFactoryTest extends TransportFactoryTestCase +class SipgateTransportFactoryTest extends AbstractTransportFactoryTestCase { + use IncompleteDsnTestTrait; + public function createFactory(): SipgateTransportFactory { return new SipgateTransportFactory(); @@ -40,4 +43,10 @@ public static function unsupportedSchemeProvider(): iterable yield ['somethingElse://tokenId:token@host.test?senderId=s1']; yield ['somethingElse://tokenId:token@host.test']; // missing senderId } + + public static function incompleteDsnProvider(): iterable + { + yield ['sipgate://:token@host.test?senderId=s1']; + yield ['sipgate://tokenId@host.test?senderId=s1']; + } }