]> git.koha-community.org Git - koha.git/commit
Bug 30047: (follow-up) Fix failing tests
authorNick Clemens <nick@bywatersolutions.com>
Mon, 13 May 2024 14:03:47 +0000 (14:03 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 13 May 2024 14:24:18 +0000 (16:24 +0200)
commitb7e5dab1e71c46a52a94a0b5c244a716653b61be
treea2118a4fa8c76fde62e569cf423212d5d5710043
parentaae125044d78f9f1a71bdc229b029db585422890
Bug 30047: (follow-up) Fix failing tests

This patch updates the test files to correctly create authorities and/or correctly
mock the needed data for authorities.

the tests in t/db_dependent/Authority/Merge.t cover the case of 'Default' authorities
which don't have valid headings - so I had to add handling for blanking the heading field
when Default type is used.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/AuthoritiesMarc.pm
C4/Heading.pm
t/db_dependent/Authority/Merge.t
t/db_dependent/Biblio.t
t/db_dependent/Koha/Authorities.t
t/db_dependent/Koha/Plugins/authority_hooks.t
t/db_dependent/api/v1/authorities.t