https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42188
--- Comment #6 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 196446 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196446&action=edit Bug 42188: Add/update unit tests for MARC-in-JSON action log diffs Update the existing _unblessed_for_log() subtest to reflect the new behaviour: MARC-derived columns (title, author, copyrightdate, etc.) are now excluded, while frameworkcode is always included even when it is an empty string (the Default framework). Add a new subtest 'CataloguingLog MARC-in-JSON diff tests' covering: - ADD: diff _marc key is MARC-in-JSON (has leader + fields array), indicators and subfield values are correct, and MARC-derived biblio columns are absent from the diff. - MODIFY: diff _marc key present, MARC-derived columns absent. - DELETE: diff _marc key present with correct MARC-in-JSON structure. Use from_json() instead of decode_json() when reading diffs back from the database, as the DBD layer returns decoded Perl Unicode strings which decode_json (which expects UTF-8 bytes) would reject for any non-ASCII content. -- 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/
