Lines 1008-1013
subtest 'add() tests' => sub {
Link Here
|
1008 |
return Koha::Libraries->search( { branchcode => [ $library_2->branchcode, $library_3->branchcode ] } ); |
1008 |
return Koha::Libraries->search( { branchcode => [ $library_2->branchcode, $library_3->branchcode ] } ); |
1009 |
}); |
1009 |
}); |
1010 |
|
1010 |
|
|
|
1011 |
my $can_be_reserved = 'OK'; |
1012 |
my $mock_reserves = Test::MockModule->new('C4::Reserves'); |
1013 |
$mock_reserves->mock( 'CanItemBeReserved', sub |
1014 |
{ |
1015 |
return { status => $can_be_reserved } |
1016 |
} |
1017 |
|
1018 |
); |
1019 |
$mock_reserves->mock( 'CanBookBeReserved', sub |
1020 |
{ |
1021 |
return { status => $can_be_reserved } |
1022 |
} |
1023 |
|
1024 |
); |
1025 |
|
1011 |
my $biblio = $builder->build_sample_biblio; |
1026 |
my $biblio = $builder->build_sample_biblio; |
1012 |
my $item = $builder->build_sample_item({ biblionumber => $biblio->biblionumber }); |
1027 |
my $item = $builder->build_sample_item({ biblionumber => $biblio->biblionumber }); |
1013 |
|
1028 |
|
1014 |
- |
|
|