Bug 35989: (QA follow-up): Fix QA tests

Some file tidying to pass the QA tests

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Matt Blenkinsop 2024-05-30 08:22:08 +00:00 committed by Martin Renvoize
parent 95f2aecc1b
commit 361ec4b2ea
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 40 additions and 36 deletions

View file

@ -29,7 +29,9 @@ $module->mock('GetHeaderAuthority', sub {
$module->mock('AddAuthorityTrees', sub {
return;
});
$module->mock('GetAuthority', sub {
$module->mock(
'GetAuthority',
sub {
my ($authid) = @_;
my $record = MARC::Record->new();
if ( $authid eq '1' ) {
@ -66,7 +68,9 @@ $module->mock('GetAuthority', sub {
undef $record;
}
return $record;
});
}
);
my $schema = Koha::Database->new->schema;
$schema->storage->txn_begin;