[Koha-bugs] [Bug 27857] Koha::Patron->extended_attributes skips checks

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 13:43:18 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27857

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 117710
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117710&action=edit
Bug 27857: Regression tests

This patch adds regression tests for the changed behavior.
Koha::Patron->extended_attributes will now throw exceptions and rollback
on invalid attributes.

The existing tests are amended so they don't try to deal with skipping
bad attributes.

Specific subtests are added for error situations.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Patron.t
=> FAIL: Tests fail because the new behavior is not implemented.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list