[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
Fri Nov 4 18:04:15 CET 2016


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

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 57218
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57218&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.

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


More information about the Koha-bugs mailing list