Skip to content

Commit 6128fe2

Browse files
committed
feature #17719 [Notifier] add notification assertion in notifier doc (MrYamous)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Notifier] add notification assertion in notifier doc While reading testing documentation I came across some assertions for notifications. I think it can be useful to talk about this directly in Notifier documentation too, WDYT ? Commits ------- 8583932 [Notifier] add notification assertion in notifier doc
2 parents 376c3f0 + 8583932 commit 6128fe2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

notifier.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,19 @@ typical alert levels, which you can implement immediately using:
759759
;
760760
};
761761
762+
Testing Notifier
763+
----------------
764+
765+
Symfony provides a :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait`
766+
which provide useful methods for testing your Notifier implementation.
767+
You can benefit from this class by using it directly or extending the :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`.
768+
769+
See :ref:`testing documentation <notifier-assertions>` for the list of available assertions.
770+
771+
.. versionadded:: 6.2
772+
773+
The :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` was introduced in Symfony 6.2.
774+
762775
Disabling Delivery
763776
------------------
764777

0 commit comments

Comments
 (0)