Skip to content

Navigation Menu

Sign in
Appearance settings

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 90768b1

Browse filesBrowse files
committed
Minor reword
1 parent 63b2b32 commit 90768b1
Copy full SHA for 90768b1

File tree

Expand file treeCollapse file tree

2 files changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-5
lines changed

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,10 +1533,11 @@ a specific address, instead of the *real* address:
15331533
Write a Functional Test
15341534
~~~~~~~~~~~~~~~~~~~~~~~
15351535

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`::
15401541

15411542
// tests/Controller/MailControllerTest.php
15421543
namespace App\Tests\Controller;
@@ -1545,7 +1546,6 @@ See :ref:`testing documentation <mailer-assertions>` for the list of available a
15451546

15461547
class MailControllerTest extends WebTestCase
15471548
{
1548-
15491549
public function testMailIsSentAndContentIsOk()
15501550
{
15511551
$client = static::createClient();

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,8 @@ Crawler Assertions
10611061
``assertFormValue()`` and ``assertNoFormValue()`` methods were introduced
10621062
in Symfony 5.2.
10631063

1064+
.. _mailer-assertions:
1065+
10641066
Mailer Assertions
10651067
.................
10661068

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.