Bug 28365: Add unit test
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 17 May 2021 14:15:19 +0000 (16:15 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Nov 2021 14:40:52 +0000 (15:40 +0100)
commite9a68f9f7d656be9552ca1eb3450032e1366fd65
tree738046cf692e199c7f367fb3d30d5b1f0ddee8fc
parent9ead06892044ef76d4a2817ed17bbff136fb6788
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>
t/db_dependent/Search.t