From: Eileen McNaughton Date: Mon, 20 Nov 2023 01:38:59 +0000 (+1300) Subject: Improve test output message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69e3e7c7279d05eb2cb4e480dad7cf4f90b70118;p=civicrm-core.git Improve test output message --- 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']); } /**