Commit 98a6b50c authored by Seamus Lee's avatar Seamus Lee

[NFC] Add in unit test for creating a new system work flow message template...

[NFC] Add in unit test for creating a new system work flow message template with only edit system workflow message templates permission
parent ffdf4f94
......@@ -103,6 +103,10 @@ class api_v3_MessageTemplateTest extends CiviUnitTestCase {
'msg_subject' => 'test msg permission subject',
'check_permissions' => TRUE,
]);
$newEntityParams = $entity['values'][$entity['id']];
unset($newEntityParams['id']);
$newEntityParams['check_permissions'] = TRUE;
$this->callAPISuccess('MessageTemplate', 'create', $newEntityParams);
// verify with all 3 permissions someone can do everything.
CRM_Core_Config::singleton()->userPermissionClass->permissions = [
'edit system workflow message templates',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment