Bugzilla – Attachment 186660 Details for
Bug 40680
Many warnings on Perl 5.40 due to importing methods from not yet defined packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40680: Fix TestBuilder
Bug-40680-Fix-TestBuilder.patch (text/plain), 1.40 KB, created by
Jonathan Druart
on 2025-09-22 09:00:20 UTC
(
hide
)
Description:
Bug 40680: Fix TestBuilder
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-22 09:00:20 UTC
Size:
1.40 KB
patch
obsolete
>From 90967620b823cdbc716902703215120c421ea33c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40680
:
186031
|
186032
|
186033
|
186034
|
186035
|
186036
|
186037
|
186038
|
186039
|
186040
|
186041
|
186654
|
186655
|
186656
|
186657
|
186658
|
186659
|
186660
|
186661
|
186662
|
186663
|
186664
|
187122
|
187123
|
187124
|
187125
|
187126
|
187127
|
187128
|
187129
|
187130
|
187131
|
187132
|
187385
|
187609
|
187610
|
187611
|
187612
|
187613
|
187614
|
187615
|
187616
|
187617
|
187618
|
187619