From 90967620b823cdbc716902703215120c421ea33c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Sep 2025 12:33:58 +0200 Subject: [PATCH] Bug 40680: Fix TestBuilder perl -wc misc/devel/create_test_data.pl Attempt to call undefined import method with arguments ("schema") via package "Koha::Database" (Perhaps you forgot to load the package?) at /kohadevbox/koha/t/lib/TestBuilder.pm line 5. Attempt to call undefined import method with arguments ("_type") via package "Koha::Biblios" (Perhaps you forgot to load the package?) at /kohadevbox/koha/t/lib/TestBuilder.pm line 7. Attempt to call undefined import method with arguments ("_type") via package "Koha::Items" (Perhaps you forgot to load the package?) at /kohadevbox/koha/t/lib/TestBuilder.pm line 8. --- t/lib/TestBuilder.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm index e5bdfde6b49..a4c11d4e967 100644 --- a/t/lib/TestBuilder.pm +++ b/t/lib/TestBuilder.pm @@ -2,10 +2,10 @@ package t::lib::TestBuilder; use Modern::Perl; -use Koha::Database qw( schema ); -use C4::Biblio qw( AddBiblio ); -use Koha::Biblios qw( _type ); -use Koha::Items qw( _type ); +use Koha::Database; +use C4::Biblio qw( AddBiblio ); +use Koha::Biblios; +use Koha::Items; use Koha::DateUtils qw( dt_from_string ); use Bytes::Random::Secure; -- 2.34.1