View | Details | Raw Unified | Return to bug 13277
Collapse All | Expand All

(-)a/t/SuggestionEngine_AuthorityFile.t (-8 / +2 lines)
Lines 26-40 use MARC::Record; Link Here
26
26
27
use Test::More;
27
use Test::More;
28
use Test::MockModule;
28
use Test::MockModule;
29
use DBD::Mock;
29
use t::lib::Mocks;
30
30
31
# Mock the DB connexion and C4::Context
31
# Mock the DB connexion and C4::Context
32
my $context = new Test::MockModule('C4::Context');
32
my $context = t::lib::Mocks::mock_dbh;
33
$context->mock( '_new_dbh', sub {
34
        my $dbh = DBI->connect( 'DBI:Mock:', '', '' )
35
          || die "Cannot create handle: $DBI::errstr\n";
36
        return $dbh;
37
});
38
33
39
use_ok('Koha::SuggestionEngine');
34
use_ok('Koha::SuggestionEngine');
40
35
41
- 

Return to bug 13277