https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42218
--- Comment #49 from Nick Clemens (kidclamp) <[email protected]> --- Created attachment 211139 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211139&action=edit Bug 42218: Unit tests for the Regular access method CounterFile.t, for release 5 and 5.1, imports a Title Master Report with an Access_Method column. It checks that a title with Regular and TDM rows keeps the Regular count only, in the monthly and in the yearly usage, that a title with TDM rows only is not added, that an empty value and "regular" are imported, and that one warning gives the number of rows that were not imported. A file with TDM rows only adds no usage. SushiCounter.t, for release 5 and 5.1, checks that TDM items and Attribute_Performance entries do not change the COUNTER report body, that a Regular entry in any case is kept, and that a response with TDM usage only gives no rows. COUNTER_5/SushiCounter.t also tests is_regular_access_method on its own. UsageDataProvider.t checks that the URL of a master report has access_method=Regular and that the URL of a standard view has not. Test plan: prove -l t/db_dependent/Koha/ERM/EUsage/COUNTER_5/CounterFile.t \ t/db_dependent/Koha/ERM/EUsage/COUNTER_5.1/CounterFile.t \ t/db_dependent/Koha/ERM/EUsage/COUNTER_5/SushiCounter.t \ t/db_dependent/Koha/ERM/EUsage/COUNTER_5.1/SushiCounter.t \ t/db_dependent/Koha/ERM/EUsage/UsageDataProvider.t Assisted-by: Sonnet 5.5 (Anthropic) Signed-off-by: Michaela Sieber <[email protected]> Signed-off-by: Nick Clemens <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
