]> git.koha-community.org Git - koha.git/commit
Bug 34094: (follow-up) Fix failing unit test
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 11 Jul 2023 13:26:46 +0000 (14:26 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jul 2023 10:02:37 +0000 (11:02 +0100)
commit26e4866c9dbff7758bb3e9886f37a002eea6d9e9
tree046ea9046caea308754a2afe5d81eb89d3f87bef
parenta7e986e18b5ee0647c3ddd35dd1024469adbd2ee
Bug 34094: (follow-up) Fix failing unit test

The unit tests were written to assume we always do a 'contains' search,
but the new system preference allows for 'starts_with' or 'contains'.

As such, for the tests to pass, we need to explicitly mock the
preference to 'contains'

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b787e66fef1f14440aa24685171d386bc41b666d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/selenium/patrons_search.t