]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Feb 2018 14:41:21 +0000 (11:41 -0300)
commit670712e57cbd197339d5ead5332b4ffd79bf22b8
treed3a90153beffdcf1fbe7e6c9c98a1d33e50c86ed
parent0e476fe45713c51413445da22af50819856a6f02
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>
t/db_dependent/Search.t