From 3205ac9a382450ede40667b9fa75fac558ab13b8 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 Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 1cd82e29b5ceec08cf77f8c24497b1def1ee3c7e) Signed-off-by: Fridolin Somers (cherry picked from commit e362982884e2f9daa6e805e5629d0de321b5544e) Signed-off-by: Matt Blenkinsop --- 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 878680c277..7304692810 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; @@ -878,6 +878,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.39.2