]> git.koha-community.org Git - koha.git/commit
Bug 22749: Regression tests for Koha::Item->hidden_in_opac
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 22 Apr 2019 14:54:21 +0000 (11:54 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 24 Apr 2019 10:39:55 +0000 (10:39 +0000)
commit6f4565ce686919ada0bc95ea26497ff80e4df250
tree3f775c56bfd7c0e9fc7310c412cef3077ef2f4aa
parentb78bd2faec703bb7d7c750dbc1070ba2449f29a9
Bug 22749: Regression tests for Koha::Item->hidden_in_opac

This patch introduces regression tests for Koha::Item->hidden_in_opac to
verify it is not considering the hidelostitems syspref when determining
if an item should be hidden (per policy) in the OPAC.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Item.t
=> FAIL: Tests fail!

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Koha/Item.t