[Koha-bugs] [Bug 27858] Make Koha::Patron::Attribute->store raise an exception on invalid type/code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 12:32:32 CET 2021


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

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

This patch introduces unit tests for the new exception to be thrown.
It generates a new extended attribute type, keeps the randomly generated
'code' and deletes the object. This way we can be sure the code doesn't
exist on the DB. It then tries to generate an attribute of that type, to
force the exception to be thrown.

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


More information about the Koha-bugs mailing list