From da4bf90e143154be99ea843539dda2674bf24c2b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 Nov 2020 14:24:22 +0100 Subject: [PATCH] Bug 23916: (follow-up) Add unit tests Fix perlcritic error Subroutine "new" called using indirect syntax at line 128, column 14. See page 349 of PBP. (Severity: 4) --- t/db_dependent/Circulation.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 41b10d23f6..819c6c1f44 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -125,7 +125,7 @@ $dbh->do('DELETE FROM borrowers'); # Disable recording of the staff who checked out an item until we're ready for it t::lib::Mocks::mock_preference('RecordStaffUserOnCheckout', 0); -my $module = new Test::MockModule('C4::Context'); +my $module = Test::MockModule->new('C4::Context'); my $library = $builder->build({ source => 'Branch', -- 2.20.1