File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
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
1534
1534
~~~~~~~~~~~~~~~~~~~~~~~
1535
1535
1536
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::
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.::
1538
1540
1539
1541
// tests/Controller/MailControllerTest.php
1540
1542
namespace App\Tests\Controller;
1541
1543
1542
- use Symfony\Bundle\FrameworkBundle\Test\MailerAssertionsTrait;
1543
1544
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1544
1545
1545
1546
class MailControllerTest extends WebTestCase
1546
1547
{
1547
- use MailerAssertionsTrait;
1548
1548
1549
1549
public function testMailIsSentAndContentIsOk()
1550
1550
{
1551
- $client = $this-> createClient();
1551
+ $client = static:: createClient();
1552
1552
$client->request('GET', '/mail/send');
1553
1553
$this->assertResponseIsSuccessful();
1554
1554
You can’t perform that action at this time.
0 commit comments