[Koha-bugs] [Bug 17557] Move GetAge to Koha::Patron->get_age (and remove SetAge)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Dec 12 11:09:28 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17557
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #57862|0 |1
is obsolete| |
Attachment #57863|0 |1
is obsolete| |
--- Comment #8 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 58104
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58104&action=edit
Bug 17557: Revised patron age calculation tests
The SetAge and GetAge test coverage are excessive.
First the SetAge subroutine was only created for testing purpose.
The goal of GetAge is quite simple and it seems quite easy to provide
corect test coverage using DateTime->add using negative numbers.
Edit: rebased so it applies
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list