[Koha-bugs] [Bug 35536] Improve removal of Koha plugins in unit tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 22 10:05:14 CET 2024


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

--- Comment #60 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I applied the patches minus the last one and ran QA tools, unit tests are not
passing:

        * Proving
/kohadevbox/koha/t/db_dependent/Koha/Plugins/authority_hooks.t KO!

    #   Failed test 'AddAuthority calls the hook with action=create, id passed'
    #   at /kohadevbox/koha/t/db_dependent/Koha/Plugins/authority_hooks.t line
57.
     # found warning: Cannot determine authority type for record: 1740 at
/kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 573.
     # found warning: Plugin error (Test Plugin): Exception 'Koha::Exception'
thrown 'after_authority_action called with action: create, id: 1740'
     # expected to find warning: (?^u:after_authority_action called with
action: create, id: \d+)

    #   Failed test 'ModAuthority calls the hook with action=modify, id passed'
    #   at /kohadevbox/koha/t/db_dependent/Koha/Plugins/authority_hooks.t line
61.
     # found warning: Cannot determine authority type for record: 1740 at
/kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 573.
     # found warning: Plugin error (Test Plugin): Exception 'Koha::Exception'
thrown 'after_authority_action called with action: modify, id: 1740'
     # expected to find warning: (?^u:after_authority_action called with
action: modify, id: 1740)
     # Looks like you failed 2 tests of 3.

#   Failed test 'after_authority_action hook'
#   at /kohadevbox/koha/t/db_dependent/Koha/Plugins/authority_hooks.t line 70.
 # Looks like you failed 1 test of 4.
 /kohadevbox/koha/t/db_dependent/Koha/Plugins/authority_hooks.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests

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


More information about the Koha-bugs mailing list