MailingSystemTest - Fix string concatenation
authorcolemanw <coleman@civicrm.org>
Wed, 13 Dec 2023 16:29:56 +0000 (11:29 -0500)
committercolemanw <coleman@civicrm.org>
Wed, 13 Dec 2023 16:29:56 +0000 (11:29 -0500)
tests/phpunit/CRM/Mailing/MailingSystemTest.php

index 280ee6e0acd21f22a5c43596acfecbd06e774bd9..03981588da5fa34ac217869a92cb37f73ffbb64a 100644 (file)
@@ -170,7 +170,7 @@ class CRM_Mailing_MailingSystemTest extends CRM_Mailing_BaseMailingSystemTest {
 
     $replyComponent = $this->callAPISuccess('MailingComponent', 'get', ['id' => CRM_Mailing_PseudoConstant::defaultComponent('Reply', ''), 'sequential' => 1])['values'][0];
     $replyComponent['body_html'] .= ' {domain.address} ';
-    $replyComponent['body_txt'] = $replyComponent['body_txt'] ?? '' . ' {domain.address} ';
+    $replyComponent['body_txt'] = ($replyComponent['body_txt'] ?? '') . ' {domain.address} ';
     $this->callAPISuccess('MailingComponent', 'create', $replyComponent);
 
     // Create initial mailing to the group.