]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 May 2023 13:38:48 +0000 (14:38 +0100)
commit010369eac6586229617044e8f7cab3bec8ec21a3
treeeda47971c6237bcb8388a77112f4c15e8ebce20d
parent90522198d8fca87ecb749da9230ca4e3983eefc6
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>
(cherry picked from commit 5e0c6b397d169e6470f85619844f8682c62e5b07)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Illrequests.t