File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1534,21 +1534,21 @@ Write a Functional Test
15341534~~~~~~~~~~~~~~~~~~~~~~~
15351535
15361536To functionally test that an email was sent, and even assert the email content or headers,
1537- you can use the built in assertions::
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.::
15381540
15391541 // tests/Controller/MailControllerTest.php
15401542 namespace App\Tests\Controller;
15411543
1542- use Symfony\Bundle\FrameworkBundle\Test\MailerAssertionsTrait;
15431544 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
15441545
15451546 class MailControllerTest extends WebTestCase
15461547 {
1547- use MailerAssertionsTrait;
15481548
15491549 public function testMailIsSentAndContentIsOk()
15501550 {
1551- $client = $this-> createClient();
1551+ $client = static:: createClient();
15521552 $client->request('GET', '/mail/send');
15531553 $this->assertResponseIsSuccessful();
15541554
You can’t perform that action at this time.
0 commit comments