|
Lines 28-34
subtest 'CompareFieldWithAuthority tests' => sub {
Link Here
|
| 28 |
|
28 |
|
| 29 |
# We are now going to be testing the authorities hierarchy code, and |
29 |
# We are now going to be testing the authorities hierarchy code, and |
| 30 |
# therefore need to pretend that we have consistent data in our database |
30 |
# therefore need to pretend that we have consistent data in our database |
| 31 |
my $module = new Test::MockModule('C4::AuthoritiesMarc'); |
31 |
my $module = Test::MockModule->new('C4::AuthoritiesMarc'); |
| 32 |
$module->mock('GetHeaderAuthority', sub { |
32 |
$module->mock('GetHeaderAuthority', sub { |
| 33 |
return {'authtrees' => ''}; |
33 |
return {'authtrees' => ''}; |
| 34 |
}); |
34 |
}); |
| 35 |
- |
|
|