Use distinct test workflow message for workflow message tests
authoreileen <emcnaughton@wikimedia.org>
Tue, 2 Jan 2024 03:10:58 +0000 (16:10 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 2 Jan 2024 03:10:58 +0000 (16:10 +1300)
commite987e6ed3b126276cc188c6ce070dcf4d7ba18c0
tree435f32629b28565f4a037c55db2366f8de47e126
parent3af1e1067ede9662f55f4ea82d91d1353e24cd86
Use distinct test workflow message for workflow message tests

The tests for the workflow message subsystem use an instance of a test
case_activity template attached the real message workflow template. They
test the text version - meaning that removing it, like we have with
others, causes various fails. In addition adding a real template that
does not match the test version causes mayhem.

In this case we want to ensure we keep all the tests for the subsystem
functionality but undo the tethering to a particular
template to allow that template to have updates without
having to go deep into this code
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTestWorkflow.php [moved from tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity.php with 87% similarity]
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTestWorkflow/CaseAdhocExample.php [moved from tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity/CaseAdhocExample.php with 85% similarity]
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTestWorkflow/CaseModelExample.php [moved from tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity/CaseModelExample.php with 87% similarity]
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php
tests/phpunit/api/v4/Entity/WorkflowMessageTest.php