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)

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-11-09 14:24:22 +01:00
parent 3c388b88c4
commit 2de7a4c04e
1 changed files with 1 additions and 1 deletions

View File

@ -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',