From 63c70609fcdb6ec5cd2b50b3b56ce7c64c190ee0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 4 Mar 2021 08:21:29 +0000 Subject: [PATCH] Bug 26057: (QA follow-up) Fix Biblios and Reserves tests With the introduction of datecancellation we now have two fields to check to varify if a transfer is 'complete' or not. I forgot to update these two tests at the time to ensure the datecancellation field was not set when adding the mock transfer. Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/Biblios.t | 3 ++- t/db_dependent/Reserves.t | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Biblios.t b/t/db_dependent/Koha/Biblios.t index 82229f1f35..994bd9611b 100755 --- a/t/db_dependent/Koha/Biblios.t +++ b/t/db_dependent/Koha/Biblios.t @@ -120,7 +120,8 @@ subtest 'waiting_or_in_transit' => sub { source => 'Branchtransfer', value => { itemnumber => $item->itemnumber, - datearrived => undef + datearrived => undef, + datecancelled => undef, } }); my $t = Koha::Database->new()->schema()->resultset( 'Branchtransfer' )->find($transfer->{branchtransfer_id}); diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index 4faab3c218..2b47ebce5e 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -866,6 +866,7 @@ subtest 'ReservesNeedReturns' => sub { value => { itemnumber => $item->itemnumber, datearrived => undef, + datecancelled => undef } }); $item->damaged(0)->store; -- 2.20.1