[Koha-bugs] [Bug 26250] Test suite does not pass if Elastic is used as search engine
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 27 00:17:23 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26250
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #108730|0 |1
is obsolete| |
--- Comment #12 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 109208
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109208&action=edit
Bug 26250: Fix tests when SearchEngine=Elastic
Most of the time the tests are failing because the item is not created
correctly (missing biblio and/or biblioitem).
The usual error is:
t/db_dependent/selenium/regressions.t ..... 5/5 Can't call method "leader" on
an undefined value at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line
534.
In this patch we are making sure $builder->build({ source => 'Item' })
is replace with $builder->build_sample_item
Test plan:
Turn on Elastic and confirm that all the tests pass!
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list