1 # Copyright 2018 Koha Development Team
3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
19 use Test::More tests => 1;
20 use t::lib::QA::TemplateFilters;
24 [% INCLUDE 'doc-head-open.inc' %]
25 <title>Koha › Patrons ›
26 [% UNLESS blocking_error %]
27 Patron details for [% INCLUDE 'patron-title.inc' no_html = 1 %]
28 [% just_a_var %] A N D [% another_one_on_same_line %]
29 [% just_a_var_filtered|html %]
30 [% just_a_var_filtered |html %]
31 [% just_a_var_filtered| html %]
32 [% just_a_var_filtered | html %]
34 [% IF ( patron.othernames | html ) %]“[% patron.othernames %]”[% END %]
35 [% Asset.css("css/datatables.css").raw %]
36 [% Asset.css("css/datatables.css") | \$raw %]
38 <a href="tel:[% patron.phone %]">[% patron.phone %]</a>
39 <a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | uri %]">[% patron.emailpro %]</a>
40 [% patron_message.get_column('manager_surname') %]
62 my @expected_errors = (
64 error => q{missing_filter},
66 q{ [% just_a_var %] A N D [% another_one_on_same_line %]},
70 error => q{missing_filter},
72 q{ [% just_a_var %] A N D [% another_one_on_same_line %]},
76 error => q{missing_filter},
78 q{ [% IF ( patron.othernames | html ) %]“[% patron.othernames %]”[% END %]},
82 error => q{asset_must_be_raw},
83 line => q{ [% Asset.css("css/datatables.css").raw %]},
87 error => q{missing_filter},
88 line => q{<a href="tel:[% patron.phone %]">[% patron.phone %]</a>},
92 error => q{missing_filter},
93 line => q{<a href="tel:[% patron.phone %]">[% patron.phone %]</a>},
97 error => q{missing_filter},
99 q{<a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | uri %]">[% patron.emailpro %]</a>},
103 error => q{missing_filter},
105 q{<a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | uri %]">[% patron.emailpro %]</a>},
109 error => q{missing_filter},
110 line => q{[% patron_message.get_column('manager_surname') %]},
114 error => q{missing_filter},
115 line => q{[%- var -%]},
119 error => q{missing_filter},
120 line => q{[% - var - %]},
124 error => q{missing_filter},
125 line => q{[%~ var ~%]},
129 error => q{missing_filter},
130 line => q{[% ~ var ~ %]},
135 my @get = t::lib::QA::TemplateFilters::missing_filters($input);
136 is_deeply( \@get, \@expected_errors);