From f81a9e6d3d0975bbe0f63fcafee20b76cc391fa4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 13 Jan 2025 14:42:23 +0100 Subject: [PATCH] Bug 38872: Add a test --- t/template_filters.t | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/t/template_filters.t b/t/template_filters.t index ffc86843e8a..0a24be69822 100755 --- a/t/template_filters.t +++ b/t/template_filters.t @@ -198,7 +198,7 @@ EXPECTED }; subtest 'Use uri filter if needed' => sub { - plan tests => 4; + plan tests => 5; my $input = <[% patron.phone %] [% patron.emailpro %] @@ -248,6 +248,23 @@ INPUT ], ); + $input = <[% var | html %][% var | html %] +INPUT + @missing_filters = t::lib::QA::TemplateFilters::missing_filters($input); + is_deeply( + \@missing_filters, + [ + { + error => "wrong_html_filter", + line => + '[% var | html %][% var | html %]', + line_number => 1 + } + + ], + ); + $input = <[% var | html %] INPUT -- 2.34.1