From a494bb1b49d0ec91b0f4a7edb44f7db6a435205f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Feb 2020 14:34:36 +0100 Subject: [PATCH] Bug 23463: Fix IsItemIssued.t It seems that some of those tests could be removed as safe_delete is widely tested in Koha/Item.t Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- t/db_dependent/Circulation/IsItemIssued.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Circulation/IsItemIssued.t b/t/db_dependent/Circulation/IsItemIssued.t index 02d92923c4..5b51eb9985 100644 --- a/t/db_dependent/Circulation/IsItemIssued.t +++ b/t/db_dependent/Circulation/IsItemIssued.t @@ -79,8 +79,8 @@ is ( IsItemIssued( $item->itemnumber ), 0, "item has been returned" ); $item->discard_changes; # FIXME We should not need that # If we do not, $self->checkout in safe_to_delete will not know the item has been checked out is( - $item->safe_delete, - 1, + ref($item->safe_delete), + 'Koha::Item', 'item that is not on loan can be deleted', );