Lines 56-62
$langModule->mock('getTranslatedLanguages', sub {
Link Here
|
56 |
my $tmplModule = new Test::MockModule('C4::Templates'); |
56 |
my $tmplModule = new Test::MockModule('C4::Templates'); |
57 |
$tmplModule->mock('_get_template_file', sub { |
57 |
$tmplModule->mock('_get_template_file', sub { |
58 |
my ($tmplbase, $interface, $query) = @_; |
58 |
my ($tmplbase, $interface, $query) = @_; |
59 |
my $opactmpl = File::Spec->rel2abs(dirname(__FILE__) . '/../koha-tmpl/opac-tmpl'); |
59 |
my $opactmpl = File::Spec->rel2abs(dirname(__FILE__) . '/../../koha-tmpl/opac-tmpl'); |
60 |
return ($opactmpl, 'prog', 'en', "$opactmpl/prog/en/modules/$tmplbase"); |
60 |
return ($opactmpl, 'prog', 'en', "$opactmpl/prog/en/modules/$tmplbase"); |
61 |
}); |
61 |
}); |
62 |
my $contextModule = new Test::MockModule('C4::Context'); |
62 |
my $contextModule = new Test::MockModule('C4::Context'); |
63 |
- |
|
|