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 commit078e98a7a3
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit8558dafce5
) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
e03747678b
commit
5d4f6d2d00
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue