Skip to content

Commit

Permalink
Merge pull request #2 from IQSS/add_email_template_to_contributors_se…
Browse files Browse the repository at this point in the history
…rvice

Added PPR_SUBMISSION_APPROVED template to PPREmailContributorsService
  • Loading branch information
abujeda authored May 17, 2024
2 parents ef081dc + 2c6650b commit 922c736
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 922c736

Please sign in to comment.