From 8583932e0080744be1ead4141a0e9fccb6299b15 Mon Sep 17 00:00:00 2001 From: MrYamous Date: Wed, 11 Jan 2023 18:23:40 +0100 Subject: [PATCH] [Notifier] add notification assertion in notifier doc --- notifier.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/notifier.rst b/notifier.rst index bff9af3d7c6..a2980ff5be5 100644 --- a/notifier.rst +++ b/notifier.rst @@ -759,6 +759,19 @@ typical alert levels, which you can implement immediately using: ; }; +Testing Notifier +---------------- + +Symfony provides a :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` +which provide useful methods for testing your Notifier implementation. +You can benefit from this class by using it directly or extending the :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`. + +See :ref:`testing documentation ` for the list of available assertions. + +.. versionadded:: 6.2 + + The :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\NotificationAssertionsTrait` was introduced in Symfony 6.2. + Disabling Delivery ------------------