[Koha-bugs] [Bug 34152] Tests in t/db_dependent/Koha/Item.t fail
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jul 3 13:52:38 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34152
Emmi Takkinen <emmi.takkinen at koha-suomi.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |Needs Signoff
Assignee|chris at bigballofwax.co.nz |emmi.takkinen at koha-suomi.fi
--- Comment #1 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
Created attachment 152927
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152927&action=edit
Bug 34152: Fix failing t/db_dependent/Koha/Item.t tests
This patch fixes following issues in t/db_dependent/Koha/Item.t
tests:
- "Can't call method "can_edit_items_from" on an undefined value
at .../Koha/Item.pm line 298." with sending patron data to mocked
environment
- "holds tests" test failures due "not_same_branch" errors by mocking
IndependentBranches enabled and adding mock user environment
To test:
1. Run prove t/db_dependent/Koha/Item.t.
=> Tests should fail.
2. Apply this patch.
3. Run prove t/db_dependent/Koha/Item.t again.
=> Success!
Sponsored-by: Koha-Suomi Oy
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list