Skip to content

Commit

Permalink
Added PPR_SUBMISSION_APPROVED template to PPREmailContributorsService
Browse files Browse the repository at this point in the history
  • Loading branch information
abujeda committed May 17, 2024
1 parent ef081dc commit 2c6650b
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 2c6650b

Please sign in to comment.