From 0f91f23b19ce2ad1ff2475c47015a458d1136e6e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 4 Oct 2021 14:29:45 -0700 Subject: [PATCH] MailingTest - Slightly relax assertion about failure-message In this error scenario, both BAO and Flexmailer complain. Flexmailer is slightly more specific in that its error reports the actual field names (`body_text`, `body_html`) rather than a phony field `body`. --- tests/phpunit/api/v3/MailingTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/MailingTest.php b/tests/phpunit/api/v3/MailingTest.php index 25c40ddc20..f5e7766834 100644 --- a/tests/phpunit/api/v3/MailingTest.php +++ b/tests/phpunit/api/v3/MailingTest.php @@ -592,7 +592,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { ['body_html' => '', 'body_text' => ''], ['scheduled_date' => '2014-12-13 10:00:00', 'approval_date' => '2014-12-13 00:00:00'], // expectedFailure - "/Mailing cannot be sent. There are missing or invalid fields \\(body\\)./", + "/Mailing cannot be sent. There are missing or invalid fields \\(.*body.*\\)./", // expectedJobCount 0, ]; -- 2.25.1