diff --git a/pprOjsPlugin/services/email/PPREmailContributorsService.inc.php b/pprOjsPlugin/services/email/PPREmailContributorsService.inc.php index ad311d3..f8b32e8 100644 --- a/pprOjsPlugin/services/email/PPREmailContributorsService.inc.php +++ b/pprOjsPlugin/services/email/PPREmailContributorsService.inc.php @@ -12,7 +12,8 @@ class PPREmailContributorsService { 'EDITOR_DECISION_RESUBMIT', 'EDITOR_DECISION_INITIAL_DECLINE', 'EDITOR_DECISION_DECLINE', - 'PPR_REVIEW_SENT_AUTHOR' + 'PPR_REVIEW_SENT_AUTHOR', + 'PPR_SUBMISSION_APPROVED' ]; private $pprPlugin; diff --git a/pprOjsPlugin/tests/src/services/email/PPREmailContributorsServiceTest.php b/pprOjsPlugin/tests/src/services/email/PPREmailContributorsServiceTest.php index cce4aac..86dea10 100644 --- a/pprOjsPlugin/tests/src/services/email/PPREmailContributorsServiceTest.php +++ b/pprOjsPlugin/tests/src/services/email/PPREmailContributorsServiceTest.php @@ -229,7 +229,15 @@ public function test_addContributorsToEmailRecipients_should_not_update_template } public function test_expected_known_templates() { - $expectedTemplates = ['SUBMISSION_ACK', 'EDITOR_DECISION_REVISIONS', 'EDITOR_DECISION_RESUBMIT', 'EDITOR_DECISION_INITIAL_DECLINE', 'EDITOR_DECISION_DECLINE', 'PPR_REVIEW_SENT_AUTHOR']; + $expectedTemplates = [ + 'SUBMISSION_ACK', + 'EDITOR_DECISION_REVISIONS', + 'EDITOR_DECISION_RESUBMIT', + 'EDITOR_DECISION_INITIAL_DECLINE', + 'EDITOR_DECISION_DECLINE', + 'PPR_REVIEW_SENT_AUTHOR', + 'PPR_SUBMISSION_APPROVED' + ]; foreach ($expectedTemplates as $expectedTemplate) { $this->assertEquals(true, in_array($expectedTemplate, PPREmailContributorsService::OJS_SEND_TO_CONTRIBUTORS_TEMPLATES)); }