Koha/t/db_dependent/Circulation
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
..
IssuingRules Bug 22001: Remove the RaiseError occurrences from tests 2020-03-27 08:52:56 +00:00
Branch.t Bug 26078: Prevent generating a new transfer from return policy when resolving a transfer 2020-08-18 14:38:44 +02:00
CalcDateDue.t Bug 25723: Update cache flushing calls 2020-07-20 17:45:31 +02:00
CalcFine.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
CheckIfIssuedToPatron.t Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
CheckValidBarcode.t Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
dateexpiry.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
GetHardDueDate.t Bug 17845: Remove some missed references to branchprinter 2020-03-10 15:18:28 +00:00
GetPendingOnSiteCheckouts.t Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00
GetTopIssues.t Bug 22001: Remove the RaiseError occurrences from tests 2020-03-27 08:52:56 +00:00
IsItemIssued.t Bug 23463: Fix IsItemIssued.t 2020-03-23 09:26:34 +00:00
issue.t Bug 25724: Unit tests 2020-07-27 17:05:06 +02:00
MarkIssueReturned.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
NoIssuesChargeGuarantees.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
OfflineOperation.t Bug 17845: Remove some missed references to branchprinter 2020-03-10 15:18:28 +00:00
ReturnClaims.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
Returns.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
StoreLastBorrower.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
SwitchOnSiteCheckouts.t Bug 26250: Fix tests when SearchEngine=Elastic 2020-08-31 16:10:26 +02:00
TooMany.t Bug 26132: Remove raw sql query 2020-08-13 10:15:33 +02:00
transferbook.t Bug 23695: (follow-up) Adjust for addition of transfer trigger 2020-08-18 15:45:48 +02:00
transfers.t Bug 23463: Replace AddItem calls with Koha::Item->store 2020-03-23 09:26:26 +00:00