]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 15 Dec 2020 21:50:15 +0000 (21:50 +0000)
commit168c21049842cfcba29c1600d73cff7b5b29d26d
tree0bdeb0cf228b4c6d0aa6932c5054c66e074c2d8d
parent66b76dd33d623cc6165cab8a2a6c8f71f28834e3
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>
(cherry picked from commit a5e9ad5db2ae5cd0011f8ebb50a3abadddee2193)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
t/Search/buildQuery.t [new file with mode: 0755]