diff --git a/t/db_dependent/AuthoritiesMarc/MARC21.t b/t/db_dependent/AuthoritiesMarc/MARC21.t index 77047e4bbc..d8ccde0d3f 100755 --- a/t/db_dependent/AuthoritiesMarc/MARC21.t +++ b/t/db_dependent/AuthoritiesMarc/MARC21.t @@ -28,7 +28,7 @@ subtest 'CompareFieldWithAuthority tests' => sub { # We are now going to be testing the authorities hierarchy code, and # therefore need to pretend that we have consistent data in our database - my $module = new Test::MockModule('C4::AuthoritiesMarc'); + my $module = Test::MockModule->new('C4::AuthoritiesMarc'); $module->mock('GetHeaderAuthority', sub { return {'authtrees' => ''}; });