https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27554
--- Comment #1 from Fridolin Somers <[email protected]> --- Created attachment 115849 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115849&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' -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
