https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42394 --- Comment #10 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 197557 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197557&action=edit Bug 42394: Fallback to {} if no userenv set It fixes the following warnings: Can't use an undefined value as a HASH reference at /kohadevbox/koha/Koha/BackgroundJob.pm line 128 I started to add mock_userenv to all our tests that enqueue but finally found a test in t/db_dependent/Koha/BackgroundJob.t that expect an userenv not set 102 is( $job->borrowernumber, undef, 'No userenv, borrowernumber undef' ); So falling back to {} seems safe for now. -- You are receiving this mail because: You are watching all bug changes.