[Koha-bugs] [Bug 17755] Introduce Koha::Patron::Attribute::Type(s)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 20 13:45:06 CET 2017


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

--- Comment #16 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 59354
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59354&action=edit
Bug 17755: (QA followup) Return $self when appropriate

As failure situations raise exceptions that should be handled outside
the object class, methods should return $self so successive calls can be
chained nicely.

This patch makes methods return $self and adjusts the tests to reflect
this change.

Make sure tests pass:
- Run:
  $ prove t/db_dependent/Koha/Patron/Attribute/Types.t
=> SUCCESS: Tests return green
- Sign off :-D

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


More information about the Koha-bugs mailing list