8000 feature #32749 [Mailer] Make transport factory test case public (Koc) · symfony/symfony@9216cb7 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9216cb7

Browse files
committed
feature #32749 [Mailer] Make transport factory test case public (Koc)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Make transport factory test case public | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes, failures looks like irrelevant | Fixed tickets | - | License | MIT | Doc PR | - `TransportFactoryTestCase` could be useful when you adding custom transport and need cover their transport factory with tests. Commits ------- 5d64009 [Mailer] Make transport factory test case public
2 parents 9282f4f + 5d64009 commit 9216cb7

File tree

11 files changed

+17
-11
lines changed

11 files changed

+17
-11
lines changed

src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesHttpTransport;
1616
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesSmtpTransport;
1717
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory;
18-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
18+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1919
use Symfony\Component\Mailer\Transport\Dsn;
2020
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
2121

src/Symfony/Component/Mailer/Bridge/Google/Tests/Transport/GmailTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailSmtpTransport;
66
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory;
7-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
7+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
88
use Symfony\Component\Mailer\Transport\Dsn;
99
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
1010

src/Symfony/Component/Mailer/Bridge/Mailchimp/Tests/Transport/MandrillTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillHttpTransport;
1616
use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillSmtpTransport;
1717
use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory;
18-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
18+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1919
use Symfony\Component\Mailer\Transport\Dsn;
2020
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
2121

src/Symfony/Component/Mailer/Bridge/Mailgun/Tests/Transport/MailgunTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunHttpTransport;
1616
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunSmtpTransport;
1717
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
18-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
18+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1919
use Symfony\Component\Mailer\Transport\Dsn;
2020
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
2121

src/Symfony/Component/Mailer/Bridge/Postmark/Tests/Transport/PostmarkTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkApiTransport;
1515
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkSmtpTransport;
1616
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
17-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
17+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1818
use Symfony\Component\Mailer\Transport\Dsn;
1919
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
2020

src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Transport/SendgridTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridApiTransport;
1515
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridSmtpTransport;
1616
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
17-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
17+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1818
use Symfony\Component\Mailer\Transport\Dsn;
1919
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
2020

src/Symfony/Component/Mailer/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ CHANGELOG
99
instead of `Symfony\Component\EventDispatcher\EventDispatcherInterface`.
1010
* Added possibility to register custom transport for dsn by implementing
1111
`Symfony\Component\Mailer\Transport\TransportFactoryInterface` and tagging with `mailer.transport_factory` tag in DI.
12+
* Added `Symfony\Component\Mailer\Test\TransportFactoryTestCase` to ease testing custom transport factories.
1213

1314
4.3.0
1415
-----
1516

16-
* Added the component
17+
* Added the component.

src/Symfony/Component/Mailer/Tests/TransportFactoryTestCase.php renamed to src/Symfony/Component/Mailer/Test/TransportFactoryTestCase.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Mailer\Tests;
12+
namespace Symfony\Component\Mailer\Test;
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Psr\Log\LoggerInterface;
@@ -21,6 +21,11 @@
2121
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2222
use Symfony\Contracts\HttpClient\HttpClientInterface;
2323

24+
/**
25+
* A test case to ease testing Transport Factory.
26+
*
27+
* @author Konstantin Myakshin <molodchick@gmail.com>
28+
*/
2429
abstract class TransportFactoryTestCase extends TestCase
2530
{
2631
protected const USER = 'u$er';

src/Symfony/Component/Mailer/Tests/Transport/NullTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Mailer\Tests\Transport;
1313

14-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
14+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1515
use Symfony\Component\Mailer\Transport\Dsn;
1616
use Symfony\Component\Mailer\Transport\NullTransport;
1717
use Symfony\Component\Mailer\Transport\NullTransportFactory;

src/Symfony/Component/Mailer/Tests/Transport/SendmailTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Mailer\Tests\Transport;
1313

14-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
14+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
1515
use Symfony\Component\Mailer\Transport\Dsn;
1616
use Symfony\Component\Mailer\Transport\SendmailTransport;
1717
use Symfony\Component\Mailer\Transport\SendmailTransportFactory;

src/Symfony/Component/Mailer/Tests/Transport/Smtp/EsmtpTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Symfony\Component\Mailer\Tests\Transport\Smtp;
44

5-
use Symfony\Component\Mailer\Tests\TransportFactoryTestCase;
5+
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
66
use Symfony\Component\Mailer\Transport\Dsn;
77
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
88
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransportFactory;

0 commit comments

Comments
 (0)
0