]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Aug 2017 14:39:46 +0000 (11:39 -0300)
commitb308b0814bcd149e3f899058e693938d982bb425
treea096e925a6aae080c69df98c96aff1db02c79241
parentff41b87302c1b242f9edd7b2e8c253bd18b57ac1
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>
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t [new file with mode: 0644]