[Koha-bugs] [Bug 27554] New: Wrong test for Koha::Patrons->update_category_to

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 27 09:41:15 CET 2021


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

            Bug ID: 27554
           Summary: Wrong test for Koha::Patrons->update_category_to
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: chris at bigballofwax.co.nz
          Reporter: fridolin.somers at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

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.

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


More information about the Koha-bugs mailing list