From 8eb27c40e6fd771e8d4c2bff28cc1a45838af712 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 18 Sep 2023 12:59:50 +0100 Subject: [PATCH] Bug 32942: (QA follow-up) Fix regression test With the move to checking status during store, we broke the api regression test introduced earlier in the patch set. Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/api/v1/suggestions.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/db_dependent/api/v1/suggestions.t b/t/db_dependent/api/v1/suggestions.t index 64979eed87..b7b0693527 100755 --- a/t/db_dependent/api/v1/suggestions.t +++ b/t/db_dependent/api/v1/suggestions.t @@ -133,6 +133,12 @@ subtest 'get() tests' => sub { "//$userid:$password@/api/v1/suggestions/" . $suggestion->id ) ->status_is(200)->json_is( $suggestion->to_api ); + my $authorised_value = Koha::AuthorisedValue->new( + { + category => 'SUGGEST_STATUS', + authorised_value => 'FREDERIC' + } + )->store; $suggestion->STATUS('FREDERIC')->store->discard_changes; $t->get_ok( "//$userid:$password@/api/v1/suggestions/" . $suggestion->id )->status_is(200) -- 2.20.1