Lines 1036-1041
subtest 'add() tests' => sub {
Link Here
|
1036 |
return Koha::Libraries->search( { branchcode => [ $library_2->branchcode, $library_3->branchcode ] } ); |
1036 |
return Koha::Libraries->search( { branchcode => [ $library_2->branchcode, $library_3->branchcode ] } ); |
1037 |
}); |
1037 |
}); |
1038 |
|
1038 |
|
|
|
1039 |
my $can_be_reserved = 'OK'; |
1040 |
my $mock_reserves = Test::MockModule->new('C4::Reserves'); |
1041 |
$mock_reserves->mock( 'CanItemBeReserved', sub |
1042 |
{ |
1043 |
return { status => $can_be_reserved } |
1044 |
} |
1045 |
|
1046 |
); |
1047 |
$mock_reserves->mock( 'CanBookBeReserved', sub |
1048 |
{ |
1049 |
return { status => $can_be_reserved } |
1050 |
} |
1051 |
|
1052 |
); |
1053 |
|
1039 |
my $biblio = $builder->build_sample_biblio; |
1054 |
my $biblio = $builder->build_sample_biblio; |
1040 |
my $item = $builder->build_sample_item({ biblionumber => $biblio->biblionumber }); |
1055 |
my $item = $builder->build_sample_item({ biblionumber => $biblio->biblionumber }); |
1041 |
|
1056 |
|
1042 |
- |
|
|