Bug 18010: Unit test for gettemplate
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Sun, 29 Jan 2017 14:52:22 +0000 (15:52 +0100)
committerKoha instance kohadev-koha <kohadev-koha@kohadevbox>
Sun, 26 Mar 2017 21:05:25 +0000 (21:05 +0000)
commit1161a67476b5b61358fdaecca57b012e663a7b02
treec358a693cb1b0f55307205c683f3c164edee7d53
parentfd1f24487a73a721f5318608fb09c47a2bea2e1b
Bug 18010: Unit test for gettemplate

A trivial test, similar to the ones in Auth.t.
Without the check in gettemplate (added in the second patch), the passwd
file will be exposed and the test fails.

Test plan:
Run t/db_dependent/Templates.t without second patch. The two tests in the
last subtest should fail.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 5508897d5a2b73c30d50fed26a6bfed62bf49398)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Conflicts:
t/db_dependent/Templates.t
t/db_dependent/Templates.t