File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1533,10 +1533,11 @@ a specific address, instead of the *real* address:
1533
1533
Write a Functional Test
1534
1534
~~~~~~~~~~~~~~~~~~~~~~~
1535
1535
1536
- To functionally test that an email was sent, and even assert the email content or headers,
1537
- you can use the built in assertions provided by :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ MailerAssertionsTrait `.
1538
-
1539
- See :ref: `testing documentation <mailer-assertions >` for the list of available assertions.::
1536
+ Symfony provides lots of :ref: `built-in mailer assertions <mailer-assertions >`
1537
+ to functionally test that an email was sent, its contents or headers, etc.
1538
+ They are available in test classes extending
1539
+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ KernelTestCase ` or when using
1540
+ the :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Test\\ MailerAssertionsTrait `::
1540
1541
1541
1542
// tests/Controller/MailControllerTest.php
1542
1543
namespace App\Tests\Controller;
@@ -1545,7 +1546,6 @@ See :ref:`testing documentation <mailer-assertions>` for the list of available a
1545
1546
1546
1547
class MailControllerTest extends WebTestCase
1547
1548
{
1548
-
1549
1549
public function testMailIsSentAndContentIsOk()
1550
1550
{
1551
1551
$client = static::createClient();
Original file line number Diff line number Diff line change @@ -1061,6 +1061,8 @@ Crawler Assertions
1061
1061
``assertFormValue() `` and ``assertNoFormValue() `` methods were introduced
1062
1062
in Symfony 5.2.
1063
1063
1064
+ .. _mailer-assertions :
1065
+
1064
1066
Mailer Assertions
1065
1067
.................
1066
1068
You can’t perform that action at this time.
0 commit comments