From cab9a7f33506e6099279dbbb99cc043d6859e247 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 20 Jan 2021 09:37:45 +0100 Subject: [PATCH] Bug 17229: Fix unit test warning Remove warning : t/db_dependent/ILSDI_Services.t .. 3/10 Null value for biblionumber in Item not allowed at /home/koha/src/t/lib/TestBuilder.pm line 387 $biblio_with_no_item is a Koha::Biblio object. Signed-off-by: Jonathan Druart (cherry picked from commit e1cbdc3691a95ae297b275a9bd8978fa01806f92) Signed-off-by: Fridolin Somers --- t/db_dependent/ILSDI_Services.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/ILSDI_Services.t b/t/db_dependent/ILSDI_Services.t index 0a13d5b18a..90e26f2628 100755 --- a/t/db_dependent/ILSDI_Services.t +++ b/t/db_dependent/ILSDI_Services.t @@ -448,14 +448,14 @@ subtest 'Holds test' => sub { my $item5 = $builder->build({ source => 'Item', value => { - biblionumber => $biblio_with_no_item->{biblionumber}, + biblionumber => $biblio_with_no_item->biblionumber, damaged => 0, } }); $query = new CGI; $query->param( 'patron_id', $expired_borrowernumber); - $query->param( 'bib_id', $biblio_with_no_item->{biblionumber}); + $query->param( 'bib_id', $biblio_with_no_item->biblionumber); $query->param( 'item_id', $item5->{itemnumber}); $reply = C4::ILSDI::Services::HoldItem( $query ); -- 2.39.5