Bug 34918: Fix userenv for safe_to_delete tests
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 27 Sep 2023 10:43:04 +0000 (10:43 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 3 Oct 2023 12:51:16 +0000 (08:51 -0400)
commitf8233f44a5e4871be38d9b850d97166dcf99c981
tree6b7e5d1910753c6770865f497224f3f14134bcbf
parent3298b2798520b9e9d7d37848739dc0b24b5f2e0d
Bug 34918: Fix userenv for safe_to_delete tests

Instead of the fallback to 51, we pass a borrower that has
permission for editing items.

Test plan:
Do not apply patch.
Run test without a borrower 51 in db. (FAIL)
Apply patch.
Run test again. (PASS)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Koha/Item.t