https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22707
--- Comment #9 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 199830 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199830&action=edit Bug 22707: Add tests for Koha::AutoNumber strategy framework Unit tests (t/Koha/Patron/AutoNumber.t): - Factory: correct strategy returned for each format_pref value; Koha::Patron::AutoNumber delegates to Koha::AutoNumber - Sequential::effective_floor uses base-class default - EAN13::_next_from produces valid 13-digit EAN-13 values - EAN13 format_value and effective_floor use base-class defaults DB-dependent tests (t/db_dependent/Koha/Patron/AutoNumber.t): - Tests use patron context config (db_source/db_column) directly, demonstrating that the generic strategies work with any injected result source and column - Sequential: db_max, next_value, counter updated in autoMemberNumValue - EAN13: db_max excludes short and non-numeric values; next_value produces valid EAN-13; short-cardnumber patrons do not inflate the sequence - peek: advisory preview, counter unchanged, idempotent -- 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/
