]> git.koha-community.org Git - koha.git/commit
Bug 18624: Regression test for 'any' vs 'all'
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Aug 2017 19:09:56 +0000 (16:09 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Sep 2017 13:21:39 +0000 (15:21 +0200)
commitefd3acb03e345a4e5c7f576038ed14961bbab3d6
tree15c5e85645bcd6ead0b8abdd13cc72975ddcb680
parent4c50a19ab920b488193d78ee18d89bb143ddae4a
Bug 18624: Regression test for 'any' vs 'all'

This test makes it explicit that the only string producing _all as index on build_authorities_query_compat is 'all'.
To test:
- Apply this patch
- Run:
  $ sudo koha-shell kohadev
 k$ cd kohaclone
 k$ prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t
=> FAIL: Test fails because the list of valid values is wrong in Koha.

Note: this list has to be in sync with the templates passing the same values. A followup will be added
to fix a discrepancy found between OPAC and Intranet.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit b308b0814bcd149e3f899058e693938d982bb425)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t [new file with mode: 0644]