From 2aff2ddefc3d4d3cb5b334ade66d1c732b74d6b5 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 --- 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 64979eed87c..b7b06935277 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.41.0