Skip to content

Commit

Permalink
feature #58335 [Notifier] deprecate the TransportFactoryTestCase (xab…
Browse files Browse the repository at this point in the history
…buh)

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
  • Loading branch information
fabpot committed Sep 27, 2024
2 parents d84bf37 + efd65f5 commit 5bf284b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions Tests/TelnyxTransportFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@
namespace Symfony\Component\Notifier\Bridge\Telnyx\Tests;

use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
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 TelnyxTransportFactoryTest extends TransportFactoryTestCase
final class TelnyxTransportFactoryTest extends AbstractTransportFactoryTestCase
{
use IncompleteDsnTestTrait;
use MissingRequiredOptionTestTrait;

public function createFactory(): TelnyxTransportFactory
{
return new TelnyxTransportFactory();
Expand Down Expand Up @@ -50,4 +55,9 @@ public static function unsupportedSchemeProvider(): iterable
yield ['somethingElse://api_key@default?from=+0611223344'];
yield ['somethingElse://api_key@default']; // missing "from" option
}

public static function incompleteDsnProvider(): iterable
{
yield ['telnyx://default?from=%2B0611223344'];
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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\\Telnyx\\": "" },
Expand Down

0 comments on commit 5bf284b

Please sign in to comment.