Bugzilla – Attachment 186664 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 t tests
Bug-40680-Fix-t-tests.patch (text/plain), 5.59 KB, created by
Jonathan Druart
on 2025-09-22 09:00:30 UTC
(
hide
)
Description:
Bug 40680: Fix t tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-09-22 09:00:30 UTC
Size:
5.59 KB
patch
obsolete
>From 2e141836b780e43a50cec8ab3dc6bfbd51dd5828 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 2 Sep 2025 12:43:53 +0200 >Subject: [PATCH] Bug 40680: Fix t tests > >--- > t/db_dependent/Biblio.t | 2 +- > t/db_dependent/Biblio/Isbd.t | 2 +- > t/db_dependent/Breeding.t | 2 +- > t/db_dependent/Circulation/dateexpiry.t | 2 +- > t/db_dependent/Koha/Z3950Responder/GenericSession.t | 2 +- > t/db_dependent/Koha/Z3950Responder/ZebraSession.t | 2 +- > t/db_dependent/Linker_Default.t | 4 ++-- > t/db_dependent/Linker_FirstMatch.t | 4 ++-- > t/db_dependent/Log.t | 2 +- > t/db_dependent/UsageStats.t | 2 +- > t/db_dependent/rollingloans.t | 2 +- > 11 files changed, 13 insertions(+), 13 deletions(-) > >diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t >index e34c00e6da3..dfa0158cf2d 100755 >--- a/t/db_dependent/Biblio.t >+++ b/t/db_dependent/Biblio.t >@@ -24,7 +24,7 @@ use Test::Warn; > use List::MoreUtils qw( uniq ); > use MARC::Record; > >-use t::lib::Mocks qw( mock_preference ); >+use t::lib::Mocks; > use t::lib::TestBuilder; > > use Koha::ActionLogs; >diff --git a/t/db_dependent/Biblio/Isbd.t b/t/db_dependent/Biblio/Isbd.t >index 051ae798f1c..68478b0f334 100755 >--- a/t/db_dependent/Biblio/Isbd.t >+++ b/t/db_dependent/Biblio/Isbd.t >@@ -21,7 +21,7 @@ use Test::NoWarnings; > use Test::More tests => 4; > use Test::MockModule; > use MARC::Record; >-use t::lib::Mocks qw( mock_preference ); >+use t::lib::Mocks; > > use Koha::Database; > >diff --git a/t/db_dependent/Breeding.t b/t/db_dependent/Breeding.t >index 8993dab8957..c3effc06d82 100755 >--- a/t/db_dependent/Breeding.t >+++ b/t/db_dependent/Breeding.t >@@ -28,7 +28,7 @@ use Test::NoWarnings; > use Test::More tests => 6; > use Test::Warn; > >-use t::lib::Mocks qw( mock_preference ); >+use t::lib::Mocks; > use t::lib::TestBuilder; > > use C4::Context; >diff --git a/t/db_dependent/Circulation/dateexpiry.t b/t/db_dependent/Circulation/dateexpiry.t >index e02bf45d59d..71b76d22039 100755 >--- a/t/db_dependent/Circulation/dateexpiry.t >+++ b/t/db_dependent/Circulation/dateexpiry.t >@@ -26,7 +26,7 @@ use Koha::DateUtils qw( dt_from_string output_pref ); > use Koha::Database; > > use t::lib::TestBuilder; >-use t::lib::Mocks qw( mock_preference ); >+use t::lib::Mocks; > > my $schema = Koha::Database->new->schema; > $schema->storage->txn_begin; >diff --git a/t/db_dependent/Koha/Z3950Responder/GenericSession.t b/t/db_dependent/Koha/Z3950Responder/GenericSession.t >index b8e0fba962d..049715ea265 100755 >--- a/t/db_dependent/Koha/Z3950Responder/GenericSession.t >+++ b/t/db_dependent/Koha/Z3950Responder/GenericSession.t >@@ -6,7 +6,7 @@ use utf8; > use Test::NoWarnings; > use Test::More tests => 4; > use Test::WWW::Mechanize; >-use t::lib::Mocks qw(mock_preference); >+use t::lib::Mocks; > > use File::Basename; > use File::Copy; >diff --git a/t/db_dependent/Koha/Z3950Responder/ZebraSession.t b/t/db_dependent/Koha/Z3950Responder/ZebraSession.t >index dc1951378c0..154a69bb5a1 100755 >--- a/t/db_dependent/Koha/Z3950Responder/ZebraSession.t >+++ b/t/db_dependent/Koha/Z3950Responder/ZebraSession.t >@@ -5,7 +5,7 @@ use Modern::Perl; > use Test::NoWarnings; > use Test::More tests => 4; > use Test::MockObject; >-use t::lib::Mocks qw(mock_preference); >+use t::lib::Mocks; > > use ZOOM; > >diff --git a/t/db_dependent/Linker_Default.t b/t/db_dependent/Linker_Default.t >index 38a917ddf0d..d21b51d843f 100755 >--- a/t/db_dependent/Linker_Default.t >+++ b/t/db_dependent/Linker_Default.t >@@ -22,10 +22,10 @@ use Test::More tests => 3; > use MARC::Record; > use MARC::Field; > use MARC::File::XML; >-use C4::Heading qw( authorities field new_from_field auth_type search_form ); >+use C4::Heading; > use C4::Linker::Default; > use Test::MockModule; >-use t::lib::Mocks qw( mock_preference ); >+use t::lib::Mocks; > use t::lib::TestBuilder; > > BEGIN { >diff --git a/t/db_dependent/Linker_FirstMatch.t b/t/db_dependent/Linker_FirstMatch.t >index 1b6cce305ab..812b01059f9 100755 >--- a/t/db_dependent/Linker_FirstMatch.t >+++ b/t/db_dependent/Linker_FirstMatch.t >@@ -25,10 +25,10 @@ use Test::More tests => 4; > use MARC::Record; > use MARC::Field; > use MARC::File::XML; >-use C4::Heading qw( authorities field new_from_field ); >+use C4::Heading; > use C4::Linker::FirstMatch; > use Test::MockModule; >-use t::lib::Mocks qw( mock_preference ); >+use t::lib::Mocks; > use t::lib::TestBuilder; > > BEGIN { >diff --git a/t/db_dependent/Log.t b/t/db_dependent/Log.t >index 90bb355be79..13560a2e06f 100755 >--- a/t/db_dependent/Log.t >+++ b/t/db_dependent/Log.t >@@ -25,7 +25,7 @@ use C4::Auth qw( checkpw ); > use Koha::Database; > use Koha::ActionLogs; > >-use t::lib::Mocks qw/mock_preference/; # to mock CronjobLog >+use t::lib::Mocks; > use t::lib::TestBuilder; > > use JSON qw( decode_json ); >diff --git a/t/db_dependent/UsageStats.t b/t/db_dependent/UsageStats.t >index c0d5d1b9050..5f3642dddc4 100755 >--- a/t/db_dependent/UsageStats.t >+++ b/t/db_dependent/UsageStats.t >@@ -19,7 +19,7 @@ use Modern::Perl; > use Test::NoWarnings; > use Test::More tests => 4; > >-use t::lib::Mocks qw(mock_preference); >+use t::lib::Mocks; > use t::lib::TestBuilder; > > use POSIX qw(strftime); >diff --git a/t/db_dependent/rollingloans.t b/t/db_dependent/rollingloans.t >index cf198018aac..02e9718b34d 100755 >--- a/t/db_dependent/rollingloans.t >+++ b/t/db_dependent/rollingloans.t >@@ -9,7 +9,7 @@ use Koha::DateUtils qw( dt_from_string ); > use Koha::Libraries; > use Koha::Patrons; > use t::lib::TestBuilder; >-use t::lib::Mocks qw(mock_preference); >+use t::lib::Mocks; > > use Test::NoWarnings; > use Test::More tests => 9; >-- >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