Koha-clms/t/db_dependent/Koha/Account
Jonathan Druart 9c9dddeaa4 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@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-31 16:10:26 +02:00
..
DebitType.t Bug 23354: (RM follow-up) Reword remaining can_be_added_manually 2020-01-13 16:37:11 +00:00
DebitTypes.t Bug 23354: (RM follow-up) Reword remaining can_be_added_manually 2020-01-13 16:37:11 +00:00
Line.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
Lines.t Bug 19036: (follow-up) Test credits should be credits 2020-08-21 12:32:43 +02:00
Offsets.t Bug 23049: (QA follow-up) Check constraint test corrections 2019-10-24 17:25:18 +01:00