]> git.koha-community.org Git - koha.git/commit
Bug 28365: Add unit test
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 17 May 2021 14:15:19 +0000 (16:15 +0200)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 5 Nov 2021 16:36:02 +0000 (12:36 -0400)
commitae66b6f1753f15bee277d0467e7a36f1eb67c318
tree94df65cf2bc89617ed2f83cd2306ae963730b9ea
parent43dbcec3aeb4a30f531f1786d635f1ce47f051cc
Bug 28365: Add unit test

Run prove t/db_dependent/Search.t

Without fix you get error :
    #   Failed test 'buildQuery should keep 0 value in query_cgi'
    #   at t/db_dependent/Search.t line 670.
    #          got: 'idx=su%2Cphr'
    #     expected: 'idx=su%2Cphr&q=0'

This patch also adds a test for query_desc in case it is broken in the
future.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Search.t