[Koha-bugs] [Bug 28615] Add a simple way to mock Koha::Logger
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 23 14:58:37 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28615
--- Comment #15 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
t::lib::Mocks::mock_logger({ warn => 1 });
Koha::Logger->get->info('test');
Koha::Logger->get->warn('warn');
This does not seem to work, because we are too late. Do you expect users of
mock_logger to mock in a BEGIN block?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list