Skip to content

Commit 6ec2858

Browse files
committed
feature #58335 [Notifier] deprecate the TransportFactoryTestCase (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [Notifier] deprecate the TransportFactoryTestCase | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | yes | Issues | Fix #54100 | License | MIT Commits ------- c8b0fcc77b deprecate the TransportFactoryTestCase
2 parents bb4cdb5 + c2f7c62 commit 6ec2858

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Tests/MessageBirdTransportFactoryTest.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
namespace Symfony\Component\Notifier\Bridge\MessageBird\Tests;
1313

1414
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdTransportFactory;
15-
use Symfony\Component\Notifier\Test\TransportFactoryTestCase;
15+
use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase;
16+
use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait;
17+
use Symfony\Component\Notifier\Test\MissingRequiredOptionTestTrait;
1618

17-
final class MessageBirdTransportFactoryTest extends TransportFactoryTestCase
19+
final class MessageBirdTransportFactoryTest extends AbstractTransportFactoryTestCase
1820
{
21+
use IncompleteDsnTestTrait;
22+
use MissingRequiredOptionTestTrait;
23+
1924
public function createFactory(): MessageBirdTransportFactory
2025
{
2126
return new MessageBirdTransportFactory();
@@ -45,4 +50,9 @@ public static function unsupportedSchemeProvider(): iterable
4550
yield ['somethingElse://token@default?from=0611223344'];
4651
yield ['somethingElse://token@default']; // missing "from" option
4752
}
53+
54+
public static function incompleteDsnProvider(): iterable
55+
{
56+
yield ['messagebird://default?from=0611223344'];
57+
}
4858
}

composer.json

Lines changed: 1 addition & 1 deletion
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\\MessageBird\\": "" },

0 commit comments

Comments
 (0)