Koha-clms/t/db_dependent/Circulation
Tomás Cohen Arazi c4c21afa6c
Bug 40136: (follow-up) Fix IsItemIssued.t mock_userenv
mock_userenv was called before the test patron was created and
used the default borrowernumber (51), which doesn't necessarily
exist in the test database. This caused safe_to_delete to crash
on the not_same_branch check when Koha::Patrons->find returned
undef.

Move mock_userenv after patron creation and pass the actual
borrowernumber.

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
2026-03-25 12:30:38 +01:00
..
Branch.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
CalcDateDue.t Bug 40680: Fix C4::Calendar imports 2025-12-01 08:34:00 -07:00
CalcFine.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
CheckIfIssuedToPatron.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
CheckValidBarcode.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
GetHardDueDate.t Bug 3492: (follow-up) Remove last reservefee references 2026-02-09 12:57:57 -07:00
GetPendingOnSiteCheckouts.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
GetTopIssues.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
IsItemIssued.t Bug 40136: (follow-up) Fix IsItemIssued.t mock_userenv 2026-03-25 12:30:38 +01:00
MarkIssueReturned.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
NoIssuesChargeGuarantees.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
OfflineCirculation.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
OfflineOperation.t Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
ReturnClaims.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
Returns.t Bug 28530: Fix tests 2026-02-10 10:51:38 -07:00
StoreLastBorrower.t Bug 26993: (follow-up) Rename last_returned_by_all as last_borrowers 2026-01-22 14:16:04 -07:00
SwitchOnSiteCheckouts.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
TooMany.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
_CalculateAndUpdateFine.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
dateexpiry.t Bug 40680: Fix t tests 2025-12-01 08:34:01 -07:00
issue.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
maxsuspensiondays.t Bug 41076: Adjust our perl tidiness for v20250105 2026-02-05 09:03:51 -07:00
transferbook.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
transfers.t Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00