]> git.koha-community.org Git - koha.git/commit
Bug 17557: Revised patron age calculation tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Nov 2016 16:18:00 +0000 (16:18 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Dec 2016 11:57:38 +0000 (11:57 +0000)
commit7808bd690b2e51c8a56d3a11f84fbe2b332beb24
treed1d1ad6e27ee024b15879df9ef69127fd31263d7
parentb133b0e94d57546e70eeb3a3b20befd130c343e6
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@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Koha/Patrons.t
t/db_dependent/Members.t