X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Ftemplate_syntax.t;h=f31c4e5ecdf243e9ab5ef811c0f8688d6e0a6e45;hb=2d9b08c723af0fbab5153ba6c8603db3a44cf98d;hp=b63d6bb17b198387e99059835e7e6a93e7717222;hpb=5ce99992a783b03eca2a382fe76a6e01d7ad724f;p=kivitendo-erp.git diff --git a/t/template_syntax.t b/t/template_syntax.t index b63d6bb17..f31c4e5ec 100644 --- a/t/template_syntax.t +++ b/t/template_syntax.t @@ -3,6 +3,7 @@ use strict; use lib 't'; use Support::Templates; +use Support::TestSetup; use File::Spec; use File::Slurp; @@ -12,15 +13,7 @@ use Test::More tests => ( scalar(@referenced_files)); 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, - COMPILE_DIR => 'users/templates-cache-for-tests', -}); +my $provider = Template::Provider->new(Support::TestSetup::template_config()); foreach my $ref (@Support::Templates::referenced_files) { my $file = "${template_path}${ref}.html";