]> git.koha-community.org Git - koha.git/commit
Bug 18789: Add tests for is_adult and is_child
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 1 Jun 2017 16:51:09 +0000 (13:51 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Feb 2018 16:03:58 +0000 (13:03 -0300)
commite5f70a6010ec08243b6aee09054f8de33577c7cd
treec49487dae40c3acc6fd272a3b4e46dd336d7f355
parentb4c23e1a3e6ed5299cf41c9a29432b13f57654ff
Bug 18789: Add tests for is_adult and is_child

This patch add 2 methods to the Koha::Patron module: is_adult and
is_child.
That way the business logic is at only one place and covered by tests.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Patron.pm
t/db_dependent/Koha/Patrons.t