Bug 22350

Summary: SIP/Transaction.t fails when SearchEngine set to ElasticSearch
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 - low CC: ere.maijala, glasklas
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2019-02-15 14:55:01 UTC
Not sure if this points to bigger issues, but recording to investigate

root@8a93f9b965df:koha(master)$ prove -v t/db_dependent/SIP/Transaction.t
t/db_dependent/SIP/Transaction.t .. 
1..4
ok 1 - New transaction created
ok 2 - Patron assigned to transaction
ok 3 - RenewAll on zero items
# Subtest: fill_holds_at_checkout
    1..5
    ok 1 - Bib has 2 holds
    ok 2 - New transaction created
    ok 3 - Patron assigned to transaction
    ok 4 - Item assigned to transaction
    # Looks like you planned 5 tests but ran 4.
not ok 4 - fill_holds_at_checkout

#   Failed test 'fill_holds_at_checkout'
#   at t/db_dependent/SIP/Transaction.t line 93.
Can't call method "leader" on an undefined value at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 419.
# Looks like your test exited with 11 just after 4.