Skip to content

Commit

Permalink
feature #58351 [Mailer] deprecate the TransportFactoryTestCase (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 7.2 branch.

Discussion
----------

[Mailer] deprecate the TransportFactoryTestCase

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Issues        |
| License       | MIT

Commits
-------

e878066cac8 deprecate the TransportFactoryTestCase
  • Loading branch information
nicolas-grekas committed Sep 28, 2024
2 parents 28c1b75 + 6a0091a commit 3a43a9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Tests/Transport/PostmarkTransportFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkApiTransport;
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkSmtpTransport;
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
use Symfony\Component\Mailer\Test\AbstractTransportFactoryTestCase;
use Symfony\Component\Mailer\Test\IncompleteDsnTestTrait;
use Symfony\Component\Mailer\Transport\Dsn;
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;

class PostmarkTransportFactoryTest extends TransportFactoryTestCase
class PostmarkTransportFactoryTest extends AbstractTransportFactoryTestCase
{
use IncompleteDsnTestTrait;

public function getFactory(): TransportFactoryInterface
{
return new PostmarkTransportFactory(null, new MockHttpClient(), new NullLogger());
Expand Down
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",
"psr/event-dispatcher": "^1",
"symfony/mailer": "^6.4|^7.0"
"symfony/mailer": "^7.2"
},
"require-dev": {
"symfony/http-client": "^6.4|^7.0",
Expand Down

0 comments on commit 3a43a9d

Please sign in to comment.