Bug 32942: (follow-up) Fix test

I missed a test case when doing follow-ups before.. this patch catches
that case and create the required authorized value to allow
ModSuggestion to succeed.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 078e98a7a3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8558dafce5)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2023-09-19 16:19:53 +01:00 committed by Matt Blenkinsop
parent e03747678b
commit 5d4f6d2d00

View file

@ -203,6 +203,12 @@ my $messages = C4::Letters::GetQueuedMessages({
});
is( @$messages, 0, 'ModSuggestions does not send an email if the status is not updated' );
my $authorised_value = Koha::AuthorisedValue->new(
{
category => 'SUGGEST_STATUS',
authorised_value => 'STALLED'
}
)->store;
my $mod_suggestion2 = {
STATUS => 'STALLED',
suggestionid => $my_suggestionid,