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

(-)a/t/XSLT.t (-11 / +5 lines)
Lines 20-37 use Modern::Perl; Link Here
20
use Test::More tests => 8;
20
use Test::More tests => 8;
21
use File::Temp;
21
use File::Temp;
22
use File::Path qw/make_path/;
22
use File::Path qw/make_path/;
23
use Test::MockModule;
24
use DBD::Mock;
25
23
26
# Mock the DB connexion and C4::Context
24
use t::lib::Mocks;
27
my $context = new Test::MockModule('C4::Context');
28
$context->mock( '_new_dbh', sub {
29
        my $dbh = DBI->connect( 'DBI:Mock:', '', '' )
30
          || die "Cannot create handle: $DBI::errstr\n";
31
        return $dbh;
32
});
33
25
34
use_ok('C4::XSLT');
26
BEGIN {
27
    my $context_module = t::lib::Mocks::mock_dbh;
28
    use_ok('C4::XSLT');
29
};
35
30
36
my $dir = File::Temp->newdir();
31
my $dir = File::Temp->newdir();
37
my @themes = ('prog', 'test');
32
my @themes = ('prog', 'test');
38
- 

Return to bug 13276