Koha/t/lib
Tomas Cohen Arazi d5a792ddf5 Bug 28615: (follow-up) Disable strict mode explicitly
So Debian 9's version of Test::MockModule doens't have ->redefine, and
Ubuntu 20.04's doesn't recognise qw(nostrict). So the only solution is
to just remove the keywords use completely and move back to using
->mock, as the rest of the codebase.

FIXME: using ->mock might be hiding some errors (like a method not being
defined/removed) and should be avoided. ->redefine will explode if the
method doesn't already exist, which is what we want, to catch this kind
of errors. That's why ->mock in strict mode is forbidden. We should try
packaging a newer Test::MockModule ourselves.

Tested on master-buster, master-stretch and master-focal.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2021-06-29 12:24:55 -03:00
..
Koha Bug 24000: Some modules do not return 1 2021-04-06 15:56:30 +02:00
Mocks Bug 28615: (follow-up) Disable strict mode explicitly 2021-06-29 12:24:55 -03:00
QA Bug 27336: Fix xt/find-missing-filters.t 2021-01-11 10:27:37 +01:00
Dates.pm Bug 19176: (QA follow-up) few cosmetic changes 2017-11-03 13:50:27 -03:00
Mocks.pm Bug 24786: (QA follow-up) Unit tests for Registers plugin 2020-11-06 15:40:00 +01:00
Selenium.pm Bug 28250: Remove upload of debug for Selenium failures 2021-04-30 17:07:31 +02:00
TestBuilder.pm Bug 28516: Prevent failures if borrower_attribute_types.mandatory=1 2021-06-23 14:56:53 +02:00