]> git.koha-community.org Git - koha.git/commit
Bug 38043: Add unit tests for KohaTimes TT filter
authorCJ Lynce <cj.lynce@westlakelibrary.org>
Thu, 3 Oct 2024 14:24:31 +0000 (14:24 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 11 Oct 2024 09:13:54 +0000 (11:13 +0200)
commitfc002aa0aa418ebe5c7cf71825c909589b6de1ec
tree5f3e0263a8a844f2312e61a86e36f481d6a18c92
parent503f310a14c19a66c11fe6a9b310f57aa912025c
Bug 38043: Add unit tests for KohaTimes TT filter

This adds units tests for the new KohaTimes TT filter.
This also corrects a minor issue with a wrong comparitor operation in
    KohaTimes.pm causing a WARN to be thrown.

To test
1. Apply patch
2. prove t/db_dependent/Template/Plugin/KohaTimes.t
3. Verify 5 Tests PASS

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Template/Plugin/KohaTimes.pm
t/db_dependent/Template/Plugin/KohaTimes.t [new file with mode: 0755]