]> git.koha-community.org Git - koha.git/commit
Bug 29368: Correctly mock Zebra index from tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 29 Oct 2021 09:15:48 +0000 (11:15 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 29 Oct 2021 13:45:53 +0000 (15:45 +0200)
commit4988c8090576150e10aa45c88ab0710fb66d0c3d
treecd808b7cc88cfec604a90217a90a0f5d9f070aab
parentd4f32c745f830a042cec772b2558ee801b1bd7d6
Bug 29368: Correctly mock Zebra index from tests

This is just reusing what is done in Search.t (and that is correct).
But search_utf8.t and remove_from_cart.t are wrong as we want to use the
UI (and we cannot mock the zebra index, ie. koha-conf, from tests for
plack).

This still needs some work but improve a bit the existing code and make
tests pass (hopefully!)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Search.t
t/db_dependent/selenium/remove_from_cart.t
t/db_dependent/www/search_utf8.t
t/lib/Mocks/Zebra.pm