|
Lines 50-62
done_testing();
Link Here
|
| 50 |
sub create_template_test { |
50 |
sub create_template_test { |
| 51 |
my $includes = shift; |
51 |
my $includes = shift; |
| 52 |
return sub { |
52 |
return sub { |
| 53 |
my $tt = Template->new({ABSOLUTE => 1, |
53 |
my $tt = Template->new( |
| 54 |
INCLUDE_PATH => $includes }); |
54 |
{ |
| 55 |
my $vars; |
55 |
ABSOLUTE => 1, |
| 56 |
my $output; |
56 |
INCLUDE_PATH => $includes, |
| 57 |
if ( ! ok($tt->process($_,$vars,\$output), $_) ){ |
57 |
PLUGIN_BASE => 'Koha::Template::Plugin', |
| 58 |
diag($tt->error); |
58 |
} |
| 59 |
} |
59 |
); |
|
|
60 |
my $vars; |
| 61 |
my $output; |
| 62 |
if ( !ok( $tt->process( $_, $vars, \$output ), $_ ) ) { |
| 63 |
diag( $tt->error ); |
| 64 |
} |
| 60 |
} |
65 |
} |
| 61 |
} |
66 |
} |
| 62 |
|
67 |
|
| 63 |
- |
|
|