From 3f97372ebb2bc05519036d8549544da8e845a1da Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 Apr 2018 15:53:02 -0300 Subject: [PATCH] Bug 20592: Add tests --- t/db_dependent/Items.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t index ef098734c9..1189e26c74 100755 --- a/t/db_dependent/Items.t +++ b/t/db_dependent/Items.t @@ -73,6 +73,12 @@ subtest 'General Add, Get and Del tests' => sub { is( $getitem->{location}, $location, "The location should not have been modified" ); is( $getitem->{permanent_location}, $location, "The permanent_location should have been set to the location value" ); + + # Do not modify anything, and do not explode! + my $dbh = C4::Context->dbh; + local $dbh->{RaiseError} = 1; + ModItem({}, $bibnum, $itemnumber); + # Modify item; setting barcode. ModItem({ barcode => '987654321' }, $bibnum, $itemnumber); my $moditem = GetItem($itemnumber); -- 2.11.0