From 8558dafce5b4f3aca82f96b431d187bab65ae326 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 19 Sep 2023 16:19:53 +0100 Subject: [PATCH] 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 (cherry picked from commit 078e98a7a35d6e5f598c51cd7c94b917f68128d1) Signed-off-by: Fridolin Somers --- t/db_dependent/Suggestions.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/db_dependent/Suggestions.t b/t/db_dependent/Suggestions.t index b5d4b5390f..5a6f7a2bbe 100755 --- a/t/db_dependent/Suggestions.t +++ b/t/db_dependent/Suggestions.t @@ -205,6 +205,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, -- 2.20.1