File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
namespace Symfony\Component\Notifier\Bridge\MessageMedia\Tests;
1313

1414
use Symfony\Component\Notifier\Bridge\MessageMedia\MessageMediaTransportFactory;
15-
use Symfony\Component\Notifier\Test\TransportFactoryTestCase;
15+
use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase;
16+
use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait;
1617

17-
final class MessageMediaTransportFactoryTest extends TransportFactoryTestCase
18+
final class MessageMediaTransportFactoryTest extends AbstractTransportFactoryTestCase
1819
{
20+
use IncompleteDsnTestTrait;
21+
1922
public function createFactory(): MessageMediaTransportFactory
2023
{
2124
return new MessageMediaTransportFactory();
@@ -44,4 +47,10 @@ public static function unsupportedSchemeProvider(): iterable
4447
{
4548
yield ['somethingElse://apiKey:apiSecret@default'];
4649
}
50+
51+
public static function incompleteDsnProvider(): iterable
52+
{
53+
yield ['messagemedia://apiKey@default'];
54+
yield ['messagemedia://:apiSecret@default'];
55+
}
4756
}
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=8.2",
2020
"symfony/http-client": "^6.4|^7.0",
21-
"symfony/notifier": "^6.4|^7.0"
21+
"symfony/notifier": "^7.2"
2222
},
2323
"autoload": {
2424
"psr-4": { "Symfony\\Component\\Notifier\\Bridge\\MessageMedia\\": "" },

0 commit comments

Comments
 (0)