Lines 60-71
BEGIN {
Link Here
|
60 |
} |
60 |
} |
61 |
} |
61 |
} |
62 |
|
62 |
|
63 |
use Test::DBIx::Class { |
63 |
use Test::DBIx::Class {}, 'Borrower', 'BorrowerSync'; #Also loads those modules. |
64 |
schema_class => 'Koha::Schema', |
|
|
65 |
connect_info => ['dbi:SQLite:dbname=:memory:','',''], |
66 |
connect_opts => { name_sep => '.', quote_char => '`', }, |
67 |
fixture_class => '::Populate', |
68 |
}, 'Borrower', 'BorrowerSync'; |
69 |
|
64 |
|
70 |
# Make the code in the module use our mocked Koha::Schema/Koha::Database |
65 |
# Make the code in the module use our mocked Koha::Schema/Koha::Database |
71 |
my $db = Test::MockModule->new('Koha::Database'); |
66 |
my $db = Test::MockModule->new('Koha::Database'); |