From 69e3e7c7279d05eb2cb4e480dad7cf4f90b70118 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 20 Nov 2023 14:38:59 +1300 Subject: [PATCH] Improve test output message --- Civi/Test/FormTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Test/FormTrait.php b/Civi/Test/FormTrait.php index 56944e05c7..a46a106249 100644 --- a/Civi/Test/FormTrait.php +++ b/Civi/Test/FormTrait.php @@ -65,7 +65,7 @@ trait FormTrait { */ protected function assertMailSentContainingString(string $string, int $mailIndex = 0): void { $mail = $this->form->getMail()[$mailIndex]; - $this->assertStringContainsString(preg_replace('/\s+/', '', $string), preg_replace('/\s+/', '', $mail['body'])); + $this->assertStringContainsString(preg_replace('/\s+/', '', $string), preg_replace('/\s+/', '', $mail['body']), 'String not found: ' . $string . "\n" . $mail['body']); } /** -- 2.25.1