]> git.koha-community.org Git - koha.git/commit
Bug 21985: Fix Circulation tests when ES it set, by using build_sample_item
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 16 Dec 2018 15:28:48 +0000 (12:28 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 8 Nov 2019 13:57:50 +0000 (14:57 +0100)
commit8196ba44065baa6ea375b3f57217ff75130f2710
tree667b243a06ee1f070a0f8518bc7622f7336a5d43
parentc70ad1cbccfd1121901622840715894e095f90d3
Bug 21985: Fix Circulation tests when ES it set, by using build_sample_item

We should use build_sample item (from bug 21971) to create items,
otherwise we may not have a valid biblioitem and/or MARC record.

Test plan:
Set SearchEngine to ES
prove that the tests in Circulation.t now pass

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 18f9ed465dc990252a0462f86010b874fdde5d77)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Circulation.t
t/lib/TestBuilder.pm