]> git.koha-community.org Git - koha.git/commit
Bug 29697: (QA follow-up) Make tests less fragile
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 31 Aug 2022 15:31:46 +0000 (12:31 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 31 Aug 2022 15:31:53 +0000 (12:31 -0300)
commit73bde2cca346b911aafff2b0011b3f0acdf720ba
treec3a54f727347672f263f6d293def21c02fe1b49b
parent6e127ad8941bf8ec3b39c4b75d2d10d63f144a28
Bug 29697: (QA follow-up) Make tests less fragile

This patch makes the tests less fragile to existing data. It does so by
making sure that when checking if the item would be hidden by
OpacHiddenItems and lost status, the item is not skipped, and thus the
notforloan value, as retrieved from the search engine is picked for the
notforloan_count calculation.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Search.t