From 27d59fdaff00c3eb0cd5573274c54ec929dfc251 Mon Sep 17 00:00:00 2001 From: Srdjan Date: Tue, 10 Oct 2017 14:28:08 +1300 Subject: [PATCH] t/Koha_ExternalContent_OverDrive.t correction https://bugs.koha-community.org/show_bug.cgi?id=17602 --- t/Koha_ExternalContent_OverDrive.t | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/t/Koha_ExternalContent_OverDrive.t b/t/Koha_ExternalContent_OverDrive.t index 8afa226..5bf0e33 100755 --- a/t/Koha_ExternalContent_OverDrive.t +++ b/t/Koha_ExternalContent_OverDrive.t @@ -6,22 +6,9 @@ use t::lib::Mocks; use Test::More; use Test::MockModule; -use Module::Load::Conditional qw( can_load check_install ); +use Module::Load::Conditional qw( can_load ); -use Koha::Schema; - -BEGIN { - if ( check_install( module => 'Test::DBIx::Class' ) ) { - plan tests => 5; - } else { - plan skip_all => "Need Test::DBIx::Class" - } -} - -use Test::DBIx::Class; - -my $db = Test::MockModule->new('Koha::Database'); -$db->mock( _new_schema => sub { return Schema(); } ); +plan tests => 5; SKIP: { skip "cannot find WebService::ILS::OverDrive::Patron", 5 -- 2.7.4