]> git.koha-community.org Git - koha.git/commit
Bug 19979: Fix get_facets_info test in Search.t
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 16 Jan 2018 13:28:36 +0000 (14:28 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 Mar 2018 09:57:11 +0000 (11:57 +0200)
commit88758966cdd3c5d1e6f3e1db2b91aefd6e45036a
treed1723e3c641a57bbd6b3009fea12f84cee40f948
parentf6c4a1c3c4ada7bf7307bbc6d3ba1d094cac7539
Bug 19979: Fix get_facets_info test in Search.t

The test should remove the holdingbranch key in the expected results when
there is only one branch.
See the logic in C4::Koha.

Test plan:
[1] Run Search.t on a database with multiple branches.
[2] Run Search.t on a database with one branch. Without this patch the test
    would fail: Failed test '_get_facets_info returns the correct data'.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 254684c3ed70f1f07023a9a1ebd8d078dcb633dc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Search.t