]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 11 Nov 2021 01:46:17 +0000 (15:46 -1000)
commitd1daaf7f872743af1fe7fbcf683b1382f11c3abd
tree64bbec113f211f457efad3a968288337353f7937
parent830b39d151236ba4a391320d36cf0a33afc4f6e3
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>
(cherry picked from commit ae66b6f1753f15bee277d0467e7a36f1eb67c318)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Search.t