]> git.koha-community.org Git - koha.git/commit
Bug 12133: Fix failing tests
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Tue, 14 Nov 2023 11:44:11 +0000 (13:44 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 14 Nov 2023 13:32:36 +0000 (10:32 -0300)
commitf7d47ffc81a510d7439d5cc9130663e2501a343a
treeb691486697d7b46e775b51325798f3bfb240d6ab
parent6be4e96a3a9578f6719db57900d903928fa9e8e0
Bug 12133: Fix failing tests

Tests in erm_users.t and Letters.t failed because when
we mock patrons they receive category where setting
can_be_guarantee is not 0. This triggers error "Child
patron cannot be a guarantor". We also need to mock
syspref "ChildNeedsGuarantor" accordingly.

To test prove t/db_dependent/api/v1/erm_users.t and
t/db_dependent/Letters.t.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Letters.t
t/db_dependent/api/v1/erm_users.t