[Koha-bugs] [Bug 27554] Wrong test for Koha::Patrons->update_category_to child to adult
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jan 27 10:55:56 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27554
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #115849|0 |1
is obsolete| |
--- Comment #3 from David Nind <david at davidnind.com> ---
Created attachment 115860
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115860&action=edit
Bug 27554: Add a test for Koha::Patrons->update_category_to child to adult
One unit test for Koha::Patrons->update_category_to seems wrong :
is(
Koha::Patrons->search_patrons_to_update_category({from=>$c_categorycode_2,too_young=>1})->update_category_to({category=>$a_categorycode}),1,'One
child patron updated to adult category');
Child is updated to adult because he his too old, not too young.
This patch adds a test on category of patron that should be an
adult after update.
Test plan :
1) Without patch, run t/db_dependent/Patrons.t
2) It does not fail
3) Apply patch, run t/db_dependent/Patrons.t
4) It fails on test 'The over age patron has been updated to adult category'
Signed-off-by: David Nind <david at davidnind.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list