From a2278eef49d192a5caa54b8753772a694b024467 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
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.
---
 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 b5d4b5390f5..5a6f7a2bbeb 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.41.0