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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Jul 2023 14:14:42 +0000 (14:14 +0000)
commit5161f6e96657fc71be7de113b53c672337a317e8
tree677926b72e400d2cf4bcd995dec9d5660394af89
parent932d7b8c0e4dda155b5ac086948892571824b85d
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>
(cherry picked from commit 26e4866c9dbff7758bb3e9886f37a002eea6d9e9)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
t/db_dependent/selenium/patrons_search.t