From cd42ce2252b275092bf704447777f25ebd3d31dc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Jul 2017 11:30:18 -0300 Subject: [PATCH] Bug 18262: Fix api/holds.t tests biblioitem must be created with a biblio Signed-off-by: Jonathan Druart --- t/db_dependent/api/v1/holds.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/api/v1/holds.t b/t/db_dependent/api/v1/holds.t index c7ec7f8880..0812464f33 100644 --- a/t/db_dependent/api/v1/holds.t +++ b/t/db_dependent/api/v1/holds.t @@ -28,6 +28,7 @@ use C4::Reserves; use Koha::Database; use Koha::Biblios; +use Koha::Biblioitems; use Koha::Items; use Koha::Patrons; @@ -310,6 +311,7 @@ sub create_biblio { my ($title) = @_; my $biblio = Koha::Biblio->new( { title => $title } )->store; + my $biblioitem = Koha::Biblioitem->new({biblionumber => $biblio->biblionumber})->store; return $biblio->biblionumber; } -- 2.39.2