Merge remote-tracking branch 'origin/new/bug_929'
This commit is contained in:
commit
34a27e01b1
1 changed files with 12 additions and 7 deletions
|
@ -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…
Reference in a new issue