From 1904ba23eb0a3c2b3422d88077f0b44f26025c11 Mon Sep 17 00:00:00 2001 From: johan Vlaar Date: Mon, 1 May 2023 12:21:11 +0200 Subject: [PATCH] [Mailer] Add new email testing functions (fixes #50200) --- testing.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing.rst b/testing.rst index 75b8d791972..7e87f116058 100644 --- a/testing.rst +++ b/testing.rst @@ -1034,6 +1034,9 @@ Mailer Assertions Asserts that the given address header equals the expected e-mail address. This assertion normalizes addresses like ``Jane Smith `` into ``jane@example.com``. +``assertEmailSubjectContains(RawMessage $email, string $expectedValue, string $message = '')``/``assertEmailSubjectNotContains(RawMessage $email, string $expectedValue, string $message = '')`` + Asserts that the subject of the given email does (not) contain the + expected subject. Notifier Assertions ...................