Browse Source

Bug 929 : Follow up to allow tests to check plugins too

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
perl xt/author/valid-templates.t runs without errors now.
3.8.x
Chris Cormack 13 years ago
committed by Paul Poulain
parent
commit
2cfb891c83
  1. 19
      xt/author/valid-templates.t

19
xt/author/valid-templates.t

@ -50,13 +50,18 @@ done_testing();
sub create_template_test {
my $includes = shift;
return sub {
my $tt = Template->new({ABSOLUTE => 1,
INCLUDE_PATH => $includes });
my $vars;
my $output;
if ( ! ok($tt->process($_,$vars,\$output), $_) ){
diag($tt->error);
}
my $tt = Template->new(
{
ABSOLUTE => 1,
INCLUDE_PATH => $includes,
PLUGIN_BASE => 'Koha::Template::Plugin',
}
);
my $vars;
my $output;
if ( !ok( $tt->process( $_, $vars, \$output ), $_ ) ) {
diag( $tt->error );
}
}
}

Loading…
Cancel
Save