]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Dec 2020 14:32:11 +0000 (15:32 +0100)
commit66b2bb7ca898007533f775a2bdc413c9d00c6ca7
tree05d44ab1ab9b530326d727216fd0af4867e1c76f
parentf6b5dfa4b718fb74654448b5663cb264b5c376b7
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>
t/Search/buildQuery.t [new file with mode: 0755]