Lines 6-27
use t::lib::Mocks;
Link Here
|
6 |
use Test::More; |
6 |
use Test::More; |
7 |
use Test::MockModule; |
7 |
use Test::MockModule; |
8 |
|
8 |
|
9 |
use Module::Load::Conditional qw( can_load check_install ); |
9 |
use Module::Load::Conditional qw( can_load ); |
10 |
|
10 |
|
11 |
use Koha::Schema; |
11 |
plan tests => 5; |
12 |
|
|
|
13 |
BEGIN { |
14 |
if ( check_install( module => 'Test::DBIx::Class' ) ) { |
15 |
plan tests => 5; |
16 |
} else { |
17 |
plan skip_all => "Need Test::DBIx::Class" |
18 |
} |
19 |
} |
20 |
|
21 |
use Test::DBIx::Class; |
22 |
|
23 |
my $db = Test::MockModule->new('Koha::Database'); |
24 |
$db->mock( _new_schema => sub { return Schema(); } ); |
25 |
|
12 |
|
26 |
SKIP: { |
13 |
SKIP: { |
27 |
skip "cannot find WebService::ILS::OverDrive::Patron", 5 |
14 |
skip "cannot find WebService::ILS::OverDrive::Patron", 5 |
28 |
- |
|
|