Bug 29381 and bug 30222 both required reviewing the conditions under which auto renewal notices are sent. It would be better if the renewals were handled by a unit tested subroutine We should have: Koha::Patron->auto_renew_checkouts Koha::Checkouts->filter_by_auto_renew->renew the renewal can report back on the status and then notify patron, depending on settings