X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=t%2FSearch.t;h=0959c85de0574fe3ee45e81919299ad93174d0f5;hb=9d8523ed2b88c8fbf18fc61835967ff555a5dc55;hp=5c3541983d130b9acca9ea67b5312f123de99d92;hpb=1985e6e4b3bd5fafe685b1a1e4874ea239f44261;p=srvgit diff --git a/t/Search.t b/t/Search.t index 5c3541983d..0959c85de0 100755 --- a/t/Search.t +++ b/t/Search.t @@ -17,9 +17,19 @@ use Modern::Perl; -use Test::More tests => 3; +use Test::More; use t::lib::Mocks; +use Module::Load::Conditional qw/check_install/; + +BEGIN { + if ( check_install( module => 'Test::DBIx::Class' ) ) { + plan tests => 3; + } else { + plan skip_all => "Need Test::DBIx::Class" + } +} + # Mock the DB connexion and C4::Context use Test::DBIx::Class; @@ -160,4 +170,3 @@ subtest "_build_initial_query tests" => sub { }; -1;