From f9e83266d1e4c987412a57a77ca7d0a4d653a65b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Nov 2018 10:55:50 -0300 Subject: [PATCH] Bug 21770: Add tests for html_entity Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- t/template_filters.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/template_filters.t b/t/template_filters.t index 33e1af9510..be638e1c3c 100644 --- a/t/template_filters.t +++ b/t/template_filters.t @@ -198,7 +198,7 @@ EXPECTED }; subtest 'Use uri filter if needed' => sub { - plan tests => 3; + plan tests => 4; my $input = <[% patron.phone %] [% patron.emailpro %] @@ -208,6 +208,7 @@ subtest 'Use uri filter if needed' => sub { [% myuri %] [% myurl %] [% myurl %] +[% myurl %] [% another_var %] [% myuri | html %] [% myurl | html %] [% myurl | html %] +[% myurl | html %] [% another_var | html %] [% var | html %] +INPUT + @missing_filters = t::lib::QA::TemplateFilters::missing_filters($input); + is_deeply( \@missing_filters, [], 'html_entity is a valid filter for href' ); }; -- 2.39.5