From 79ae69261333ee011df5ce505e30f762a29a0807 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Thu, 17 Aug 2023 12:26:39 +0000 Subject: [PATCH] Bug 23548: Unit test - Set AQ to empty when item not exist Signed-off-by: Victor Grousset/tuxayo --- t/db_dependent/SIP/Message.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/SIP/Message.t b/t/db_dependent/SIP/Message.t index 3da7edc4c2..271df04abf 100755 --- a/t/db_dependent/SIP/Message.t +++ b/t/db_dependent/SIP/Message.t @@ -98,7 +98,7 @@ subtest 'Test renew desensitize' => sub { subtest 'Checkin V2' => sub { my $schema = Koha::Database->new->schema; $schema->storage->txn_begin; - plan tests => 39; + plan tests => 40; $C4::SIP::Sip::protocol_version = 2; test_checkin_v2(); $schema->storage->txn_rollback; @@ -897,6 +897,7 @@ sub test_checkin_v2 { is( substr($response,2,1), '0', 'OK flag is false' ); is( substr($response,5,1), 'Y', 'Alert flag is set' ); check_field( $respcode, $response, FID_SCREEN_MSG, 'Invalid Item', 'Check screen msg', 'regex' ); + check_field( $respcode, $response, FID_PERM_LOCN, '', 'Check that AQ is in the response'); # Not checked out, toggle option checked_in_ok $siprequest = CHECKIN . 'N' . 'YYYYMMDDZZZZHHMMSS' . -- 2.42.0