24 Dec
2020
24 Dec
'20
12:24 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26457 --- Comment #29 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to David Cook from comment #27)
(In reply to Nick Clemens from comment #26)
(In reply to Jonathan Druart from comment #22)
Could you provide a test?
I have tried, but it seems it requires a lot of mocking and I have not been successful, help would be appreciated :-)
Couldn't you add a unit test for AddRenewal that just puts in junk data to trigger the exception?
Indeed I can! Turns out we pass 'lastreneweddate' right through, so adding junk data in the call lets us trigger the exception -- You are receiving this mail because: You are watching all bug changes.