summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/004template.t4
-rw-r--r--t/Support/Templates.pm2
2 files changed, 6 insertions, 0 deletions
diff --git a/t/004template.t b/t/004template.t
index 136a74f06..3b41282cc 100644
--- a/t/004template.t
+++ b/t/004template.t
@@ -86,6 +86,10 @@ foreach my $include_path (@include_paths) {
# Need to define filters used in the codebase, they don't
# actually have to function in this test, just be defined.
# See globals.pl for the actual codebase definitions.
+
+ # Initialize templates (f.e. by loading plugins like Hook).
+ PRE_PROCESS => "global/initialize.none.tmpl",
+
FILTERS =>
{
html_linebreak => sub { return $_; },
diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm
index e90565392..440358015 100644
--- a/t/Support/Templates.pm
+++ b/t/Support/Templates.pm
@@ -69,6 +69,8 @@ $num_actual_files = 0;
my $path = File::Spec->catdir('template', $langdir, 'custom');
my @dirs = ();
push(@dirs, $path) if(-d $path);
+ $path = File::Spec->catdir('template', $langdir, 'extension');
+ push(@dirs, $path) if(-d $path);
$path = File::Spec->catdir('template', $langdir, 'default');
push(@dirs, $path) if(-d $path);