projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epic-ts
[kivitendo-erp.git]
/
t
/
template_syntax.t
diff --git
a/t/template_syntax.t
b/t/template_syntax.t
index
b1b4224
..
142f102
100644
(file)
--- a/
t/template_syntax.t
+++ b/
t/template_syntax.t
@@
-3,6
+3,7
@@
use strict;
use lib 't';
use Support::Templates;
use lib 't';
use Support::Templates;
+use Support::TestSetup;
use File::Spec;
use File::Slurp;
use File::Spec;
use File::Slurp;
@@
-12,14
+13,7
@@
use Test::More tests => ( scalar(@referenced_files));
my $template_path = 'templates/webpages/';
my $template_path = 'templates/webpages/';
-my $provider = Template::Provider->new({
- INTERPOLATE => 0,
- EVAL_PERL => 0,
- ABSOLUTE => 1,
- CACHE_SIZE => 0,
- PLUGIN_BASE => 'SL::Template::Plugin',
- INCLUDE_PATH => '.:' . $template_path,
-});
+my $provider = Template::Provider->new(Support::TestSetup::template_config());
foreach my $ref (@Support::Templates::referenced_files) {
my $file = "${template_path}${ref}.html";
foreach my $ref (@Support::Templates::referenced_files) {
my $file = "${template_path}${ref}.html";
@@
-33,7
+27,7
@@
foreach my $ref (@Support::Templates::referenced_files) {
ok(0, "${file} contains syntax errors");
} else {
ok(0, "${file} contains syntax errors");
} else {
- die "Unknown result type: " . ref($result);
+ die "Unknown result type: " . ref($result)
. " for file " . $file
;
}
}
}
}