my $branchcode = $library->{branchcode};
-my $context = new Test::MockModule('C4::Context');
+my $context = Test::MockModule->new('C4::Context');
$context->mock( 'userenv', sub {
return {
flags => 1,
)->store();
my $manager = $builder->build_object({ class => "Koha::Patrons" });
- my $context = new Test::MockModule('C4::Context');
+ my $context = Test::MockModule->new('C4::Context');
$context->mock( 'userenv', sub {
return {
number => $manager->borrowernumber,