]> git.koha-community.org Git - koha.git/commit
Bug 12430: Add unit tests for C4::Search::buildQuery
authorDavid Cook <dcook@prosentient.com.au>
Tue, 18 Feb 2020 03:02:55 +0000 (03:02 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Dec 2020 10:05:54 +0000 (11:05 +0100)
commita5e9ad5db2ae5cd0011f8ebb50a3abadddee2193
tree59eab6db9e999310dcb1fe634d61b6342bb6c6de
parent913cf92b2d8d4b1a948e32c941c903359afa7f02
Bug 12430: Add unit tests for C4::Search::buildQuery

This patch adds unit tests for buildQuery, especially focusing on
the use of the (rk=()) wrapper.

Note that the Net::Z3950::ZOOM library is used to test the queries
for CCL validity on top of the string matching used in the
got/expected comparisons.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
JD amended patch: fix spelling connexion ==> connection

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 66b2bb7ca898007533f775a2bdc413c9d00c6ca7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/Search/buildQuery.t [new file with mode: 0755]