From af093305b8c936f20c49fa707d5bc58fc9059ba8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Sat, 30 Sep 2023 06:52:08 +0000 Subject: [PATCH] Bug 34969: Remove unneeded module from buildQuery.t Test plan: Run t/Search/buildQuery.t Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- t/Search/buildQuery.t | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/t/Search/buildQuery.t b/t/Search/buildQuery.t index 58d8158f96..d03b2cf8b0 100755 --- a/t/Search/buildQuery.t +++ b/t/Search/buildQuery.t @@ -16,27 +16,12 @@ # along with Koha; if not, see . use Modern::Perl; +use Test::More tests => 9; +use Net::Z3950::ZOOM; -use Test::More; use t::lib::Mocks; -use Module::Load::Conditional qw/check_install/; - -BEGIN { - if ( check_install( module => 'Test::DBIx::Class' ) ) { - plan tests => 12; - } else { - plan skip_all => "Need Test::DBIx::Class" - } -} - -# Mock the DB connection and C4::Context -use Test::DBIx::Class; - -use_ok('C4::Search', qw( buildQuery )); -can_ok('C4::Search', - qw/buildQuery/); -use_ok("Net::Z3950::ZOOM"); +use C4::Search qw( buildQuery ); #FIXME: would it be better to use our real ccl.properties file? sub _get_ccl_properties { -- 2.39.5