Lines 261-273
INPUT
Link Here
|
261 |
is_deeply( \@missing_filters, [], 'html_entity is a valid filter for href' ); |
261 |
is_deeply( \@missing_filters, [], 'html_entity is a valid filter for href' ); |
262 |
}; |
262 |
}; |
263 |
|
263 |
|
264 |
subtest 'Do not escape KohaDates output' => sub { |
264 |
subtest 'Do not escape KohaDates|Prices|HtmlTags output' => sub { |
265 |
plan tests => 2; |
265 |
plan tests => 2; |
266 |
my $input = <<INPUT; |
266 |
my $input = <<INPUT; |
267 |
[% var | \$KohaDates %] |
267 |
[% var | \$KohaDates %] |
268 |
[% var | \$KohaDates with_hours => 1 %] |
268 |
[% var | \$KohaDates with_hours => 1 %] |
269 |
[% var | \$KohaDates | html %] |
269 |
[% var | \$KohaDates | html %] |
270 |
[% var | \$KohaDates with_hours => 1 | html %] |
270 |
[% var | \$KohaDates with_hours => 1 | html %] |
|
|
271 |
[% var | \$Price %] |
272 |
[% var | \$HtmlTags %] |
271 |
INPUT |
273 |
INPUT |
272 |
|
274 |
|
273 |
my $expected = <<EXPECTED; |
275 |
my $expected = <<EXPECTED; |
Lines 275-280
INPUT
Link Here
|
275 |
[% var | \$KohaDates with_hours => 1 %] |
277 |
[% var | \$KohaDates with_hours => 1 %] |
276 |
[% var | \$KohaDates %] |
278 |
[% var | \$KohaDates %] |
277 |
[% var | \$KohaDates with_hours => 1 %] |
279 |
[% var | \$KohaDates with_hours => 1 %] |
|
|
280 |
[% var | \$Price %] |
281 |
[% var | \$HtmlTags %] |
278 |
EXPECTED |
282 |
EXPECTED |
279 |
|
283 |
|
280 |
my $new_content = t::lib::QA::TemplateFilters::fix_filters($input); |
284 |
my $new_content = t::lib::QA::TemplateFilters::fix_filters($input); |
281 |
- |
|
|