[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 Mar 10 14:50:02 CET 2017


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

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #59354|0                           |1
        is obsolete|                            |

--- Comment #21 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 60992
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60992&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