]> git.koha-community.org Git - koha.git/commit
Bug 22440: (follow-up) Fix existing tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 19:22:20 +0000 (16:22 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 20:45:22 +0000 (17:45 -0300)
commit5e0c6b397d169e6470f85619844f8682c62e5b07
tree104975309f1580dcd89d08c23320d2130696f0ec
parentd0bcb1ca83acd2de9f8d58c2d4e8c0c79d73fb5c
Bug 22440: (follow-up) Fix existing tests

As we are introducing a FK for illrequests.biblio_id, TestBuilder is
generating a linked biblio, and so tests expecting undef are failing.

This fixes it by explicitly setting biblio_id => undef on creating the
request.

The patch also cleans the area a bit, removing a redundant and fragile
test as well.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/Illrequests.t