From 2c5eaebefbca78139f4112adfa667779b40aafc8 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 2 Sep 2023 20:24:05 +1200 Subject: [PATCH] Fix participant test to tolerant strict smarty --- tests/phpunit/CRM/Event/Form/ParticipantTest.php | 9 +-------- .../message_templates/event_offline_receipt_html.tpl | 3 +-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/phpunit/CRM/Event/Form/ParticipantTest.php b/tests/phpunit/CRM/Event/Form/ParticipantTest.php index a87a70f42c..4d8dc680b2 100644 --- a/tests/phpunit/CRM/Event/Form/ParticipantTest.php +++ b/tests/phpunit/CRM/Event/Form/ParticipantTest.php @@ -257,18 +257,11 @@ class CRM_Event_Form_ParticipantTest extends CiviUnitTestCase { 'location_type_id' => 1, ]); - //Get workflow id of event_offline receipt. - $workflowId = $this->callAPISuccess('OptionValue', 'get', [ - 'return' => ['id'], - 'option_group_id' => 'msg_tpl_workflow_event', - 'name' => 'event_offline_receipt', - ]); - //Modify html to contain event_type_id token. $result = $this->callAPISuccess('MessageTemplate', 'get', [ 'sequential' => 1, 'return' => ['id', 'msg_html'], - 'workflow_id' => $workflowId['id'], + 'workflow_name' => 'event_offline_receipt', 'is_default' => 1, ]); $oldMsg = $result['values'][0]['msg_html']; diff --git a/tests/templates/message_templates/event_offline_receipt_html.tpl b/tests/templates/message_templates/event_offline_receipt_html.tpl index 703eed9859..28d58687d4 100644 --- a/tests/templates/message_templates/event_offline_receipt_html.tpl +++ b/tests/templates/message_templates/event_offline_receipt_html.tpl @@ -1,3 +1,2 @@ event.location:{event.location} -$location.address.1.display:{$location.address.1.display|nl2br} - +$location.address.1.display:{$location.address.1.display|smarty:nodefaults|nl2br} -- 2.25.1